配置强大的vim开发工具

.vimrc 如下

syntax enable
syntax on
set nu
set hlsearch

set expandtab " 使用space代替tab. 
set tabstop=4 " 四个空格。 
set shiftwidth=4 " 自动缩进的宽度。

set autoindent
set smartindent

set fdm=syntax
set fdc=3

"colorscheme desert

"=============================
" for tab
"=============================
map tn :tabnext
map tp :tabprevious
map td :tabnew .
map te :tabedit
map tc :tabclose

"=============================
" for taglist
"=============================
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Use_Right_Window = 1
"let Tlist_WinWidth = 20
map  :TlistToggle


"=============================
" for NERD
"=============================

map <F7> :NERDTreeToggle<cr>
let NERDTreeWinSize=30


"=============================
" for omni 
"=============================

"set tags+=
filetype plugin indent on
set completeopt=longest,menu
map <C-F6> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q -L cscope.files<CR>

"=============================
" for cscope 
"=============================

set csqf=s-,g-,c-,d-,i-,t-,e-

source .vimrc

若发现有报错的,错误提示搜索下载相关插件:
sudo apt-cache search syntax
sudo apt-get install vim-syntax-gtk
sudo apt-get install ctags


其它插件:
Vundle 管理vim插件的插件
YouCompleteMe 自动补全插件
NERDTree 目录树
Vim-Jinja2-Syntax 语法增强插件

vundle下载地址: https://github.com/VundleVim/Vundle.vim

你可能感兴趣的:(工具)