当前位置:K88软件开发文章中心编程工具Vim → 文章内容

vim配置.vimrc方案1

减小字体 增大字体 作者:佚名  来源:网上搜集  发布时间:2019-1-24 10:53:09

由 路飞 创建, 最后一次修改 2016-08-24 vim大牛配置1来自github: https://github.com/humiaozuzu/dot-vimrcstar数:1351配置如下Skip to contentThis repositorySearchPull requestsIssuesGist @shuter Watch 154 Star 1,351 Fork 520 humiaozuzu/dot-vimrc Code Issues 5 Pull requests 1 Wiki Pulse GraphsBranch: master Find file Copy pathdot-vimrc/vimrc9f843b9 on 9 Sep 2013@humiaozuzu humiaozuzu Fix snipmate error2 contributors @humiaozuzu @graceceRawBlameHistory 269 lines (235 sloc) 8.19 KBsource ~/.vim/bundles.vim" encoding dectectionset fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1" enable filetype dectection and ft specific plugin/indentfiletype plugin indent on" enable syntax hightlight and completionsyntax on"--------" Vim UI"--------" color schemeset background=darkcolor solarized" highlight current lineau WinLeave * set nocursorline nocursorcolumnau WinEnter * set cursorline cursorcolumnset cursorline cursorcolumn" searchset incsearch"set highlight " conflict with highlight current lineset ignorecaseset smartcase" editor settingsset history=1000set nocompatibleset nofoldenable " disable folding"set confirm " prompt when existing from an unsaved fileset backspace=indent,eol,start " More powerful backspacingset t_Co=256 " Explicitly tell vim that the terminal has 256 colors "set mouse=a " use mouse in all modesset report=0 " always report number of lines changed "set nowrap " dont wrap linesset scrolloff=5 " 5 lines above/below cursor when scrollingset number " show line numbersset showmatch " show matching bracket (briefly jump)set showcmd " show typed command in status barset title " show file in titlebarset laststatus=2 " use 2 lines for the status barset matchtime=2 " show matching bracket for 0.2 secondsset matchpairs+=<:> " specially for html" set relativenumber" Default Indentationset autoindentset smartindent " indent whenset tabstop=4 " tab widthset softtabstop=4 " backspaceset shiftwidth=4 " indent width" set textwidth=79" set smarttabset expandtab " expand tab to spaceautocmd FileType php setlocal tabstop=2 shiftwidth=2 softtabstop=2 textwidth=120autocmd FileType ruby setlocal tabstop=2 shiftwidth=2 softtabstop=2 textwidth=120autocmd FileType php setlocal tabstop=4 shiftwidth=4 softtabstop=4 textwidth=120autocmd FileType coffee,javascript setlocal tabstop=2 shiftwidth=2 softtabstop=2 textwidth=120autocmd FileType python setlocal tabstop=4 shiftwidth=4 softtabstop=4 textwidth=120autocmd FileType html,htmldjango,xhtml,haml setlocal tabstop=2 shiftwidth=2 softtabstop=2 textwidth=0autocmd FileType sass,scss,css setlocal tabstop=2 shiftwidth=2 softtabstop=2 textwidth=120" syntax supportautocmd Syntax javascript set syntax=jquery " JQuery syntax support" jslet g:html_indent_inctags = "html,body,head,tbody"let g:html_indent_script1 = "inc"let g:html_indent_style1 = "inc""-----------------" Plugin settings"-----------------" Rainbow parentheses for Lisp and variantslet g:rbpt_colorpairs = [ \ ['brown', 'RoyalBlue3'], \ ['Darkblue', 'SeaGreen3'], \ ['darkgray', 'DarkOrchid3'], \ ['darkgreen', 'firebrick3'], \ ['darkcyan', 'RoyalBlue3'], \ ['darkred', 'SeaGreen3'], \ ['darkmagenta', 'DarkOrchid3'], \ ['brown', 'firebrick3'], \ ['gray', 'RoyalBlue3'], \ ['black', 'SeaGreen3'], \ ['darkmagenta', 'DarkOrchid3'], \ ['Darkblue', 'firebrick3'], \ ['darkgreen', 'RoyalBlue3'], \ ['darkcyan', 'SeaGreen3'], \ ['darkred', 'DarkOrchid3'], \ ['red', 'firebrick3'], \ ]let g:rbpt_max = 16autocmd Syntax lisp,scheme,clojure,racket RainbowParenthesesToggle" tabbarlet g:Tb_MaxSize = 2let g:Tb_TabWrap = 1hi Tb_Normal guifg=white ctermfg=whitehi Tb_Changed guifg=green ctermfg=greenhi Tb_VisibleNormal ctermbg=252 ctermfg=235hi Tb_VisibleChanged guifg=green ctermbg=252 ctermfg=white" easy-motionlet g:EasyMotion_leader_key = '<Leader>'" Tagbarlet g:tagbar_left=1let g:tagbar_width=30let g:tagbar_autofocus = 1let g:tagbar_sort = 0let g:tagbar_compact = 1" tag for coffeeif executable('coffeetags') let g:tagbar_type_coffee = { \ 'ctagsbin' : 'coffeetags', \ 'ctagsargs' : '', \ 'kinds' : [ \ 'f:functions', \ 'o:object', \ ], \ 'sro' : ".", \ 'kind2scope' : { \ 'f' : 'object', \ 'o' :

[1] [2]  下一页


vim配置.vimrc方案1