我的.vimrc配置文件 写道
"set mouse=a
set nu
set backspace=indent,eol,start
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Use_Right_Window=1
let Tlist_File_Fold_Auto_Close=1
map <F4> :TlistToggle<CR>
noremap <F2> :w<CR>
noremap <F6> :make<CR>
noremap <S-F6> :make clean;make<CR>
noremap <F7> :Tlist<CR>
noremap <S-F7> :TlistSync<CR>
noremap <F3> :!./vitags.sh<CR>:cs reset<CR>
noremap <S-F3> :!cvs up<CR>
nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
set wrap
set hlsearch
"colorscheme default
"colorscheme elflord
colorscheme desert
"colorscheme blue
"colorscheme delek
"colorscheme evening
"colorscheme murphy
"colorscheme torte
"colorscheme daukblue
"colorscheme koehler.vim
"colorscheme pablo
"colorscheme ron
"colorscheme zellner
"colorscheme morning
"colorscheme peachpuff
"colorscheme shine
syntax on
set nocp
filetype plugin on
filetype indent on
if has("cscope")
set csprg=/usr/bin/cscope
set csto=0
set cst
set nocsverb
" add any database in current directory
if filereadable("cscope.out")
cs add cscope.out
" else add database pointed to by environment
elseif $CSCOPE_DB != ""
cs add $CSCOPE_DB
endif
set csverb
set cscopetag
endif
set tabstop=4
set shiftwidth=4
"autocmd FileType python set expandtab
set ru
set hls
set is
set sm
set cin
set cino=:0g0t0(sus
"let Tlist_Ctags_Cmd = '/usr/bin/ctags'
set autoread " read open files again when changed outside Vim
"set autowrite " write a modified buffer on each :next , ...
"set browsedir =current " which directory to use for the file browser
set incsearch " use incremental search
set nowrap " do not wrap lines
"set visualbell " visual bell instead of beeping
set nobackup
set nowritebackup
map <C-F12> :!ctags -R --c-kinds=+p --fields=+iaS --extra=+q .<CR>
map <C-F11> :!ctags -R .<CR>
"-------------------------------------------------------------------------------
" Change the working directory to the directory containing the current file
"-------------------------------------------------------------------------------
"if has("autocmd")
" autocmd BufEnter * :lchdir %:p:h
"endif " has("autocmd")
" When editing a file, always jump to the last cursor position.
" This must be after the uncompress commands.
autocmd BufReadPost * if line("'\"") && line("'\"") <= line("$") | exe "normal `\"" | endif
set nu
set backspace=indent,eol,start
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Use_Right_Window=1
let Tlist_File_Fold_Auto_Close=1
map <F4> :TlistToggle<CR>
noremap <F2> :w<CR>
noremap <F6> :make<CR>
noremap <S-F6> :make clean;make<CR>
noremap <F7> :Tlist<CR>
noremap <S-F7> :TlistSync<CR>
noremap <F3> :!./vitags.sh<CR>:cs reset<CR>
noremap <S-F3> :!cvs up<CR>
nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
set wrap
set hlsearch
"colorscheme default
"colorscheme elflord
colorscheme desert
"colorscheme blue
"colorscheme delek
"colorscheme evening
"colorscheme murphy
"colorscheme torte
"colorscheme daukblue
"colorscheme koehler.vim
"colorscheme pablo
"colorscheme ron
"colorscheme zellner
"colorscheme morning
"colorscheme peachpuff
"colorscheme shine
syntax on
set nocp
filetype plugin on
filetype indent on
if has("cscope")
set csprg=/usr/bin/cscope
set csto=0
set cst
set nocsverb
" add any database in current directory
if filereadable("cscope.out")
cs add cscope.out
" else add database pointed to by environment
elseif $CSCOPE_DB != ""
cs add $CSCOPE_DB
endif
set csverb
set cscopetag
endif
set tabstop=4
set shiftwidth=4
"autocmd FileType python set expandtab
set ru
set hls
set is
set sm
set cin
set cino=:0g0t0(sus
"let Tlist_Ctags_Cmd = '/usr/bin/ctags'
set autoread " read open files again when changed outside Vim
"set autowrite " write a modified buffer on each :next , ...
"set browsedir =current " which directory to use for the file browser
set incsearch " use incremental search
set nowrap " do not wrap lines
"set visualbell " visual bell instead of beeping
set nobackup
set nowritebackup
map <C-F12> :!ctags -R --c-kinds=+p --fields=+iaS --extra=+q .<CR>
map <C-F11> :!ctags -R .<CR>
"-------------------------------------------------------------------------------
" Change the working directory to the directory containing the current file
"-------------------------------------------------------------------------------
"if has("autocmd")
" autocmd BufEnter * :lchdir %:p:h
"endif " has("autocmd")
" When editing a file, always jump to the last cursor position.
" This must be after the uncompress commands.
autocmd BufReadPost * if line("'\"") && line("'\"") <= line("$") | exe "normal `\"" | endif
相关推荐
该配置文件包含了设置行号、Tab...具体说明可以参考我的文章《【Linux成长之路基础篇:玩转vim(vi)编辑器】三大模式及命令介绍、如何通过配置文件.vimrc配置vim》第三章《三、vim配置文件.vimrc》里面有详细的介绍。
vim常用插件以及.vimrc文件的常用配置
修改文件名为.vimrc 存放在根目录下
个人常用的vimrc文件配置,包含了vim常用的配置,即使用vundle插件的配置,和一些常用vim插件配置如AutoPairs等
.vimrc的设置 强大的vim配置文件, 在终端下使用vim进行编辑时,默认情况下, 编辑的界面上是没有显示行号、语法高亮度显示、智能缩进等功能的。 为了更好的在vim下进行工作,需要手动设置一个配置文件:.vimrc。 ...
我常用的linux下vi配置文件.vimrc.比较好用
.vimrc.是linux的配置文件,支持彩色显示
改配置文件参考网络经典配置,供大家下载。
vim配置文件.vimrc完美配置
自己配置的VIM IDE环境,包括ctags、cscope等插件,语法高亮等,用了一年时间,读写代码感觉比较方便
mac和linux系统下,vim编辑器的通用配置文件,在文件坐在文件夹路径下打开终端,输入命令 mv vimrc.txt ~/.vimrc 并回车,即可完成vim配置
.vimrc 文件 vim配置文件 字体、颜色 各类插件 ------------ 具体配置步骤找寻相关博客 仅供参考
vim的配置文件,我上传是想让本人看看~
Linux下的 vim编辑器的配置文件 .vimrc 。带有文件索引功能(cscope-indexer )
vim的配置文件,下载好,然后拷贝到用户主目录下并改名为: .vimrc
我的vimrc配置文件,配置了常用的一些插件,如winmanager,taglist和lookupfiles等
.vimrc~ vim配置文件,自用vim配置文件,包含插件The-NERD-tree,taglist.vim,vim-airline和自动补全插件YouCompleteMe的配置,YouCompleteMe需要额外下载配置,如没有下载配置则把Youcomplete部分注释掉即可。
.vimrc——vim的配置文件。包含以下插件: 1)neocomplcache自动代码对齐插件 2)align自动符号对齐插件 3)visincr同列数字升序或降序编号插件 4)tagbar标签窗口插件