set nocompatible " be iMproved, required filetype off " required
" set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported. " Keep Plugin commands between vundle#begin/end.
" All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required
Plugin 'tpope/vim-fugitive'" plugin from http://vim-scripts.org/vim/scripts.html
Plugin 'L9'" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'" git repos on your local machine (i.e. when working on your own plugin)
Plugin 'file:///home/gmarik/path/to/plugin'" The sparkup vim script is in a subdirectory of this repo called vim." Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Avoid a name conflict with L9
Plugin 'user/L9', {'name': 'newL9'}
只要在.vimrc裡輸入: set foldmethod=marker 就會以「{{{」來標示折疊的起始行,以「}}}」標示折疊的結束行, 如果沒有設定這一行的話,預設是不會顯示像「{{{」和「}}}」的縮排符號的, 而且一離開vim,fold就會取消,也就是下次開啟vim時fold就會不見。 另外,如果在.vimrc加入: set foldlevel=0 可以讓開啟檔案時,預設將所有fold關閉。
" vundle config set nocompatible " be iMproved, required filetype off " required
" set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim'
call vundle#end() " required filetype plugin indent on " required
set hlsearch
" syntastic setting set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} set statusline+=%*
let g:syntastic_always_populate_loc_list = 1 let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0
" shown powerline in sigle buffer set laststatus=2 set t_Co=256 let g:Powerline_colorscheme='solarized256' "let g:Powerline_symbols = 'fancy' "let g:airline_powerline_fonts = 1