.vimrc

changeset 418
7a92f61a3c11
parent 416
ef460163c246
child 419
f860c013676f
equal deleted inserted replaced
417:b59975db3760 418:7a92f61a3c11
153 nmap <C-h> <C-w>h 153 nmap <C-h> <C-w>h
154 nmap <C-j> <C-w>j 154 nmap <C-j> <C-w>j
155 nmap <C-k> <C-w>k 155 nmap <C-k> <C-w>k
156 nmap <C-l> <C-w>l 156 nmap <C-l> <C-w>l
157 157
158 " Prefer using regexes like in perl code.
159 map / /\v
160 map ? ?\v
161
162 " navigate by on-screen lines 158 " navigate by on-screen lines
163 map j gj 159 map j gj
164 map k gk 160 map k gk
165 161
166 " Select last paste 162 " Select last paste
196 syntax on 192 syntax on
197 filetype plugin indent on 193 filetype plugin indent on
198 194
199 set encoding=utf-8 195 set encoding=utf-8
200 196
197 set incsearch
201 set hlsearch 198 set hlsearch
202 set ignorecase 199 set ignorecase
203 set smartcase 200 set smartcase
204 201
205 if has('gui_running') || $LANG =~ 'UTF-8' 202 if has('gui_running') || $LANG =~ 'UTF-8'
231 " set number 228 " set number
232 set scrolloff=10 229 set scrolloff=10
233 set ruler 230 set ruler
234 set showcmd 231 set showcmd
235 set wildmenu 232 set wildmenu
233
234 set ttimeout
235 set ttimeoutlen=200
236 236
237 set tags+=.tags 237 set tags+=.tags
238 238
239 " Ignore compiled files and repositories 239 " Ignore compiled files and repositories
240 set wildignore=*.o,*~,*.pyc 240 set wildignore=*.o,*~,*.pyc
318 " }}} 318 " }}}
319 319
320 320
321 " Autocmds {{{ 321 " Autocmds {{{
322 function! AutoSessionConfig() 322 function! AutoSessionConfig()
323 if strlen(v:servername) > 0 323 if strlen(v:servername) > 0 && match(v:servername, '^VIM') == -1
324 let g:unite_source_session_default_session_name = tolower(v:servername) 324 let g:unite_source_session_default_session_name = tolower(v:servername)
325 let g:unite_source_session_enable_auto_save = 1 325 let g:unite_source_session_enable_auto_save = 1
326 326
327 UniteSessionLoad 327 UniteSessionLoad
328 endif 328 endif

mercurial