配置强大的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<cr>
map tp :tabprevious<cr>
map td :tabnew .<cr>
map te :tabedit
map tc :tabclose<cr>

"=============================
" for taglist
"=============================
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Use_Right_Window = 1
"let Tlist_WinWidth = 20
map <F8> :TlistToggle<cr>


"=============================
" 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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值