Skip to content

Mvpanswer7/MyVimrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

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' Plugin 'scrooloose/nerdcommenter' Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' Plugin 'easymotion/vim-easymotion' Plugin 'fatih/vim-go' Plugin 'scrooloose/syntastic' Bundle 'Raimondi/delimitMate' Bundle 'Yggdroot/indentLine' Bundle 'scrooloose/nerdtree' Bundle 'kien/ctrlp.vim' "indentLine 代码缩进线标志线 let g:indentLine_char = '¦' let g:indentLine_color_term = 239 ""映射到ctrl+i键 map <C-i> :IndentLinesToggle<CR> "let g:airline_powerline_fonts = 1 " The following are examples of different formats supported. " Keep Plugin commands between vundle#begin/end. " plugin on GitHub repo " plugin from http://vim-scripts.org/vim/scripts.html " All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required " To ignore plugin indent changes, instead use: "filetype plugin on " " Brief help " :PluginList - lists configured plugins " :PluginInstall - installs plugins; append `!` to update or just ":PluginUpdate " :PluginSearch foo - searches for foo; append `!` to refresh local cache " :PluginClean - confirms removal of unused plugins; append `!` to "auto-approve removal " " see :h vundle for more details or wiki for FAQ " Put your non-Plugin stuff after this line " set laststatus=2 let g:airline_powerline_fonts=1 let g:airline#extensions#tabline#enabled=1 " enable tabline let g:airline#extensions#tabline#buffer_nr_show=1 " 显示buffer行号 nnoremap <C-N> :bn<CR> nnoremap <C-M> :bp<CR> "set ambiwidth=double " When iTerm set double-width characters, set it let g:syntastic_error_symbol='>>' let g:syntastic_warning_symbol='>' let g:syntastic_check_on_open=1 let g:syntastic_check_on_wq=1 let g:syntastic_enable_highlighting=1 let g:syntastic_python_checkers=['pyflakes'] " 使用pyflakes,速度比pylint快 let g:syntastic_javascript_checkers = ['jsl', 'jshint'] let g:syntastic_html_checkers=['tidy', 'jshint'] let g:syntastic_always_populate_loc_list = 0 let g:syntastic_auto_loc_list = 1 let g:syntastic_loc_list_height = 5 let g:loaded_syntastic_python_python_checker = 1 function! ToggleErrors() let old_last_winnr = winnr('$') lclose if old_last_winnr == winnr('$') " Nothing was closed, open syntastic error location panel Errors endif endfunction map <F2> :SyntasticToggleMode<CR> map <C-f> :NERDTree<CR> noremap <C-W><C-U> :CtrlPMRU<CR> nnoremap <C-W>u :CtrlPMRU<CR> let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn$\|.rvm$' let g:ctrlp_working_path_mode=0 let g:ctrlp_match_window_bottom=1 let g:ctrlp_max_height=15 let g:ctrlp_match_window_reversed=0 let g:ctrlp_mruf_max=500 let g:ctrlp_follow_symlinks=1 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published