Repository navigation
Expand file tree
/
Copy path.vimrc
More file actions
66 lines (54 loc) · 1.37 KB
/
Copy path.vimrc
File metadata and controls
66 lines (54 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
" indent
set expandtab
set shiftwidth=2
set softtabstop=2
filetype indent on
" search
set hlsearch
set incsearch
hi Search guibg=peru guifg=wheat
set ignorecase
set smartcase
" match file name
set wildmenu
"do not wrap lines
set nowrap
"no backup
set nobackup
set noswapfile
"set textwidth and column after tw are highlighted no auto wrap
"set tw=80
"set cc=+1
set colorcolumn=81
"set pwd to current file dir
"autocmd BufEnter * if expand("%:p:h") !~ '^/tmp' | silent! lcd %:p:h | endif
" set up gtags-cscope
let GtagsCscope_Auto_Map = 1
let GtagsCscope_Ignore_Case = 1
let GtagsCscope_Absolute_Path = 1
let GtagsCscope_Keep_Alive = 1
let GtagsCscope_Auto_Load = 1
let GtagsCscope_Auto_Update = 1
let GtagsCscope_Quiet = 1
set cscopetag
" view manpage in vim refer to :h find-manpage
runtime! ftplugin/man.vim
" setting of pyclewn
let g:pyclewn_python = "/usr/bin/python3"
let g:pyclewn_args = "-w right"
" ignore files in nerdtree
let NERDTreeIgnore = ['\.o$']
" install vim-plug before intall following plugins
call plug#begin()
Plug 'scrooloose/nerdtree'
Plug 'jistr/vim-nerdtree-tabs'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'scrooloose/syntastic'
Plug 'multilobyte/gtags-cscope'
Plug 'jlanzarotta/bufexplorer'
Plug 'Valloric/YouCompleteMe'
Plug 'rdnetto/YCM-Generator', { 'branch': 'stable'}
Plug 'bling/vim-airline'
Plug 'tpope/vim-fugitive'
Plug 'rhysd/vim-clang-format'
call plug#end()