-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.vimrc2
69 lines (56 loc) · 1.72 KB
/
.vimrc2
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
67
68
69
set nocompatible " be iMproved, required
filetype off " required
"set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
"" let Vundle manage Vundle, required
Bundle 'gmarik/vundle'
"Bundle 'The-NERD-tree'
Bundle 'Syntastic'
"My plugins
Bundle 'taglist.vim'
Bundle 'https://github.com/Lokaltog/vim-powerline.git'
"Bundle 'https://github.com/Valloric/YouCompleteMe.git'
Bundle 'Yggdroot/indentLine'
Bundle 'https://github.com/hallettj/jslint.vim'
Bundle 'https://github.com/vim-scripts/The-NERD-tree.git'
filetype plugin indent on " required
""YCM plugind
let g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py'
nnoremap <leader>gg :YcmCompleter GoToDefinitionElseDeclaration<CR>
"Taglist plugin
let Tlist_Show_Menu = 1
let Tlist_Show_One_File = 1
let Tlist_Exit_OnlyWindow = 1
let Tlist_Use_Right_Window = 1
let Tlist_Auto_Open=1
""vim-powerline plugin
set laststatus=2
set t_Co=256
"set g:Powerline_symbols='compatible' "only for gui mode
set encoding=utf8
""color
color desert
"cscope
nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-\>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-\>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-\>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-\>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-\>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-\>i :cs find i <C-R>=expand("<cfile>")<CR><CR>
nmap <C-\>d :cs find d <C-R>=expand("<cword>")<CR><CR>
"tabs indent
set tabstop=4
set softtabstop=4
set shiftwidth=4
set cindent
set expandtab
set nu
"disable jslint highlight
let g:JSLintHighlightErrorLine = 0
"color column 79chars
set colorcolumn=79
" NerdTree
map <F3> :NERDTreeMirror<CR>
map <F3> :NERDTreeToggle<CR>