vim配置

1、先安装vundle管理

git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim

2、需要安装的软件:

sudo apt-get install ctags cscope  build-essential cmake python-dev python3-dev

3、vimrc配置文件:

" ==============vim基本配置==============
set guifont=Monospace\ 14
set nu!             " 显示行号
syntax enable
syntax on
"colorscheme desert

set autowrite   " 自动保存

set foldmethod=syntax
set foldlevel=100  " 启动vim时不要自动折叠代码
set textwidth=80
set formatoptions+=t
set cindent
set smartindent
set noerrorbells
set showmatch
set nobackup 
set noswapfile
" set cursorline

" ==============Vundle插件管理==============
" Vundle manage
set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'scrooloose/nerdtree'
Plugin 'majutsushi/tagbar' " Tag bar
"Plugin 'Xuyuanp/nerdtree-git-plugin'
"Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'vim-airline/vim-airline' | Plugin 'vim-airline/vim-airline-themes' " Status line"
"Plugin 'jiangmiao/auto-pairs'
"Plugin 'mbbill/undotree'
"Plugin 'gdbmgr'


你可能感兴趣的:(【Linux基础】)