vim配置

来源:互联网 发布:360浏览器怎么调试js 编辑:程序博客网 时间:2024/05/17 23:26

vim 配置

set backupdir=/tmp directory=/tmpset modeline si ai incsearch sw=4 ts=4 history=64 encoding=UTF-8set formatoptions-=t textwidth=76 "only wrap when in commentset hlsearchset modeline"encodingset fileencodings=utf-8set termencoding=utf-8"" Fix Backspace for MacOSXset backspace=indent,eol,startfiletype onsyntax on" Highlight trailing white-spaceslet c_space_errors=1autocmd Syntax * syn match ExtraWhitespace /\s\+$/" "set t_Co=256" "colorscheme desert256 colorscheme ron" Useful Shortcutsmap <F5> <esc>:w<cr>:make<cr>map <F6> :cn<cr>map <F7> :cN<cr>map <F4> @:"for drupal developmentif has("autocmd")  " Drupal *.module and *.install files.    augroup module        autocmd BufRead,BufNewFile *.module set filetype=php            autocmd BufRead,BufNewFile *.install set filetype=php              augroup END              endif

效果预览:



0 0
原创粉丝点击