vimrc 配置参考

来源:互联网 发布:公司审批软件 编辑:程序博客网 时间:2024/06/01 22:57
syntax onfiletype off" format and user interfaceset nocompatibleset numberset softtabstop=4 tabstop=4 shiftwidth=4set expandtabset autoindentset hlsearchset mouse=a set cursorlineset cursorcolumnset laststatus=2set backspace=2" initialize vundleif !isdirectory(expand("~/.vim/bundle/vundle/.git"))    !git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundleendifset rtp+=~/.vim/bundle/vundle/call vundle#rc()" feature bundlesBundle 'gmarik/vundle'Bundle 'scrooloose/nerdtree'Bundle 'scrooloose/nerdcommenter'Bundle 'jistr/vim-nerdtree-tabs'Bundle 'kien/ctrlp.vim'Bundle 'majutsushi/tagbar'Bundle 'ervandew/supertab'Bundle 'tpope/vim-fugitive'Bundle 'tpope/vim-surround'Bundle 'scrooloose/syntastic'Bundle 'bling/vim-airline'Bundle 'editorconfig/editorconfig-vim'Bundle 'mattn/emmet-vim'" file type bundlesBundle 'kchmck/vim-coffee-script'Bundle 'derekwyatt/vim-scala'Bundle 'Glench/Vim-Jinja2-Syntax'Bundle 'sophacles/vim-bundle-mako'Bundle 'othree/html5.vim'Bundle 'sprsquish/thrift.vim'Bundle 'tonyseek/rust.vim'Bundle 'cakebaker/scss-syntax.vim'Bundle 'wavded/vim-stylus'Bundle 'jansenm/vim-cmake'Bundle 'vim-ruby/vim-ruby'Bundle 'tfnico/vim-gradle'Bundle 'cespare/vim-toml'Bundle 'evanmiller/nginx-vim-syntax'" theme bundlesBundle 'tomasr/molokai'" key mappinglet mapleader=","imap jk <ESC>imap Jk <ESC>imap JK <ESC>imap jK <ESC>nmap 1 ^nmap 0 $nmap <Leader>tb :TagbarToggle<CR>nmap <Leader>tt :NERDTreeToggle<CR>nmap <Leader>nt :tabnew<CR>nmap <TAB> :tabn<CR>nmap <C-J> <C-W>j<C-W>_nmap <C-K> <C-W>k<C-W>_nmap <C-L> <C-W>l<C-W>_nmap <C-H> <C-W>h<C-W>_nmap ;ntr :NERDTree<CR>" custom commandscom! FormatJSON %!python -m json.tool" configurations of pluginslet g:nerdtree_tabs_open_on_console_startup = 0let g:nerdtree_tabs_open_on_gui_startup = 0let g:airline_powerline_fonts = 1let g:airline_theme = 'jellybeans'let NERDTreeIgnore = ['\.py[oc]$', '__pycache__', '\.egg-info']let g:ctrlp_custom_ignore = 'node_modules\|pyc\|git\|__pycache__'let g:tagbar_ctags_bin='/usr/bin/ctags'let g:ctrlp_use_caching = 1let g:ctrlp_working_path_mode = 0let g:syntastic_cpp_compiler_options = ' -std=c++11'let g:syntastic_java_javac_config_file_enabled = 1let g:loaded_syntastic_rst_rst2pseudoxml_checker = 1let g:jinja_syntax_html = 1if filereadable('/usr/local/bin/ctags')    let g:tagbar_ctags_bin = '/usr/local/bin/ctags'endiffunction! FiletypeHook(config)    if has_key(a:config, 'language')        let &filetype = a:config['language']    endif    return 0   " Return 0 to show no error happenedendfunctioncall editorconfig#AddNewHook(function('FiletypeHook'))" display styleif exists('+colorcolumn')    set colorcolumn=80endifif &term == 'linux' || &term == 'ansi'    set t_Co=8else    set t_Co=256endiflet base16colorspace=256set background=darkcolorscheme molokai" indentautocmd Filetype ruby setlocal ts=2 sts=2 sw=2autocmd Filetype coffee setlocal ts=2 sts=2 sw=2autocmd Filetype stylus setlocal ts=2 sts=2 sw=2filetype plugin onfiletype indent on
0 0
原创粉丝点击