- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
Latest commit
110 lines (91 loc) · 3.07 KB
/
Copy pathvimrc
File metadata and controls
110 lines (91 loc) · 3.07 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"install python python-dev cmake YCM(make) vim7.4
"run 'vim:BundleInstall' or 'shell:vim +BundleInstall +all'
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
setnocompatible" required
filetypeon" required
"set the runtime path to include Vundle and initialize
setrtp+=~/.vim/bundle/Vundle.vim
callvundle#begin()
Plugin'gmarik/Vundle.vim'
Plugin'scrooloose/nerdtree'
Plugin'jistr/vim-nerdtree-tabs'
Plugin'davidhalter/jedi-vim'
callvundle#end()" required
filetypepluginindenton" required
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"split navigations
setsplitbelow
setsplitright
nnoremap<C-J><C-W><C-J>
nnoremap<C-K><C-W><C-K>
nnoremap<C-L><C-W><C-L>
nnoremap<C-H><C-W><C-H>
"Enable folding
setfoldmethod=indent
setfoldlevel=99
nnoremap<space>za
auBufNewFile,BufRead*.pysettabstop=4softtabstop=4shiftwidth=4expandtabautoindentfileformat=unix
auBufNewFile,BufRead*.js,*.html, *.css settabstop=2softtabstop=2shiftwidth=2
"YCM
"let g:ycm_autoclose_preview_window_after_completion=1
"map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
"NERDTree
let NERDTreeIgnore=['\.pyc$', '\~$']
map<F2>:NERDTreeMirror<CR>
map<F2>:NERDTreeToggle<CR>
autocmdbufenter*if (winnr("$") ==1&&exists("b:NERDTreeType") &&b:NERDTreeType=="primary") | q | endif
setsplitright
setsplitbelow
map<C-l>:tabn<CR>
map<C-h>:tabp<CR>
map<C-n>:tabnew<CR>
"define for ray
let python_highlight_all=1
inoremapjj<Esc>
"let mapleader="/"
syntaxon
sett_Co=256
setbackground=dark
colorscheme wombat256mod
"colorscheme harlequin
" colorscheme desert
"jedi
"export PYTHONPATH="/home/shenlei.sl/python/lib/python3.6/site-packages":$PYTHONPATH
letg:jedi#show_call_signatures ="2""1:pop-up 2: bottom
letg:jedi#popup_select_first =1
letg:jedi#documentation_command ="K"
letg:jedi#completions_command ="<C-j>"
letg:jedi#auto_close_doc =1"Automatically close preview window upon leaving insert mode
setencoding=utf-8
setnu
setrelativenumber
setsw=4
setts=4
setlbr
setsm
setselection=inclusive
setsmarttab
setsmartindent
setcmdheight=1
setbackspace=indent,eol,start
"当光标一段时间保持不动了,就禁用高亮
autocmdcursorhold*setnohlsearch
"当输入查找命令时,再启用高亮
noremapn:set hlsearch<cr>n
noremapN:set hlsearch<cr>N
noremap/:set hlsearch<cr>/
noremap?:set hlsearch<cr>?
noremap**:set hlsearch<cr>
highlightSearch ctermbg=yellow ctermfg=black
highlightIncSearch ctermbg=black ctermfg=yellow
highlightMatchParen cterm=underline ctermbg=NONE ctermfg=NONE
"设置默认进行大小写不敏感查找
setignorecase
"如果有一个大写字母,则切换到大小写敏感查找
setsmartcase
"provide hjkl movements in Insert mode via the <Alt> modifier key
"inoremap <A-h> <C-o>h
"inoremap <A-j> <C-o>j
"inoremap <A-k> <C-o>k
"inoremap <A-l> <C-o>l