linux 下的vim 简单配置

来源:互联网 发布:银行业大数据应用 编辑:程序博客网 时间:2024/04/29 02:14
set linebreak " line breakset nocompatible " no compatibleset history=400 " historyset rulerset number " line numberset hlsearch " highlight searchset noincsearch " no in C searchset expandtab " expand tableset t_vb= "close bellset foldmethod=markerset tabstop=4 " table stepset shiftwidth=4set nobackup " don't backupset smarttab " smart tableset smartindent " smart indentset autoindent " auto indentset cindent "cindentset cursorline " hightlight cursor line 高亮光标所在行set backspace=indent,eol,start "这行比较重要,刚接触vim的朋友会发现有时候backspace键删不了文字colorscheme desert " color schemelet Tlist_Use_Right_Window=0 " for tag_list plugin onlylet Tlist_File_Fold_Auto_Close=1 " for tag_list plugin onlylet g:winManagerWindowLayout="FileExplorer|TagList" " for winmanagerfiletype plugin indent on " filetype settingset completeopt=longest,menu " for code completefunction! CurrectDir()let curdir = substitute(getcwd(), "", "", "g")return curdirendfunctionset statusline=\ [File]\ %F%m%r%h\ %w\ \ [PWD]\ %r%{CurrectDir()}%h\ \ %=[Line]\ %l,%c\ %=\ %Pif has("win32")set guifont=Courier_New:h10:cANSIendifif exists("syntax_on")syntax resetelsesyntax onendifif has("autocmd")autocmd Filetype java setlocal omnifunc=javacomplete#Completeendiflet performance_mode=1function MySys()if has("win32")return "win32"elseif has("unix")return "unix"elsereturn "mac"endifendfunctionif MySys() == "unix" || MySys() == "mac"set shell=bashelseendifif exists("&autoread")set autoreadendifif exists("&mouse")set mouse=aendiflet mapleader=","let g:mapleader=","nmap <leader>x :xa!<cr>nmap <leader>w :w!<cr>map <leader>cd :cd %:p:h<cr>map <F9> ggVGg?if exists("&foldenable")set fenendifif exists("&foldlevel")set fdl=0endifmap <F3> :Tlist<cr>noremap <leader>m :%s/



此是网上摘抄别人的,目前还没有把vim配置成一个功能较为强大的 IDE 编译器,如有大神在,请赐教。

0 0
原创粉丝点击