- 先行安裝 vim-pathogen
Manage your
'runtimepath'
with ease. Ieasy to install plugins and runtime files in their own private directories.- 全新的vim需要加入.vimrc作為修改vim的地方
指令輸入:vim ~/.vimrc
即可進入編輯的狀態,接著輸入以下載檔案中
execute pathogen#infect()
syntax on
filetype plugin indent on
Now any plugins you wish to install can be extracted to a subdirectory under ~/.vim/bundle
, and they will be added to the 'runtime path'
- 接著下載自己想要的樣式(Spacegray.vim)到~/.vim/bundle裡面
輸入
cd ~/.vim/bundle && git clone git://github.com/ajh17/Spacegray.vim.git- 接著要在vimrc中輸入這行,指定自己想要啟動哪個colorscheme
colorscheme spacegray