brandboat

Tyler says the things you own, end up owning you.

Vim 設置 Colorscheme

vim-railscasts-theme

  • cd ~/.vim/colors 若無此資料夾,請自行新建

  • vim railscasts.vim 複製 vim-railscasts-theme 中的 railscasts.vim 到裡頭

  • vim ~/.vimrc 加入此行 colorscheme railscasts 或者 colo railscasts 來設置 colorscheme



(圖片來源自:http://sunaku.github.io/vim-256color-bce-xterm.png)

如果使用了colorscheme而在tmuxvim時出現每一行底色跟背景顏色不一致的情況,這是因為設置了TERM=xterm-256color而衍生出來的問題,解決辦法 : disable Background Color Erase

  • ~/.vimrc中加入

set t_ut=

Comments