diff options
author | Max Christian Pohle | 2017-04-28 17:06:55 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-04-28 17:06:55 +0200 |
commit | 25a9f9ad3e2481f21f9d0c2fa749258ae206b322 (patch) | |
tree | 0f59fd253e100563bd4591ddeb97e962c575bb72 /vimrc | |
parent | 2de245f6cee6463943d12b29e6ef8ce260568c95 (diff) | |
download | vim-karlmarks-25a9f9ad3e2481f21f9d0c2fa749258ae206b322.tar.bz2 vim-karlmarks-25a9f9ad3e2481f21f9d0c2fa749258ae206b322.zip |
fixed order, added some cscope shortcuts from vim.wikia
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 28 |
1 files changed, 25 insertions, 3 deletions
@@ -337,11 +337,31 @@ if has("gui_running") | |||
337 | set winaltkeys=menu | " behave like other windows: ALT-key can be used to open the menu (and cannot be :remaped) | 337 | set winaltkeys=menu | " behave like other windows: ALT-key can be used to open the menu (and cannot be :remaped) |
338 | endif | 338 | endif |
339 | 339 | ||
340 | |||
341 | if has('cscope') | ||
342 | " http://vim.wikia.com/wiki/Cscope | ||
343 | set cscopetag cscopeverbose | ||
344 | |||
345 | if has('quickfix') | ||
346 | set cscopequickfix=s-,c-,d-,i-,t-,e- | ||
347 | endif | ||
348 | |||
349 | cnoreabbrev csa cs add | ||
350 | cnoreabbrev csf cs find | ||
351 | cnoreabbrev csk cs kill | ||
352 | cnoreabbrev csr cs reset | ||
353 | cnoreabbrev css cs show | ||
354 | cnoreabbrev csh cs help | ||
355 | |||
356 | command -nargs=0 Cscope cs add $VIMSRC/src/cscope.out $VIMSRC/src | ||
357 | endif | ||
358 | |||
359 | |||
340 | if bufname('%') == '' | 360 | if bufname('%') == '' |
341 | set bufhidden=wipe | 361 | set bufhidden=wipe |
342 | endif | 362 | endif |
343 | 363 | ||
344 | noautocmd | 364 | " noautocmd |
345 | 365 | ||
346 | if has("autocmd") | 366 | if has("autocmd") |
347 | set modeline | " set variables specific to a file, like indentation by adding a comment | 367 | set modeline | " set variables specific to a file, like indentation by adding a comment |
@@ -354,10 +374,10 @@ if has("autocmd") | |||
354 | autocmd BufWritePost $MYVIMRC source $MYVIMRC | 374 | autocmd BufWritePost $MYVIMRC source $MYVIMRC |
355 | augroup END " } | 375 | augroup END " } |
356 | 376 | ||
357 | augroup extra_whitespace | 377 | augroup extra_whitespace " { |
358 | highlight ExtraWhitespace ctermbg=red guibg=red | 378 | highlight ExtraWhitespace ctermbg=red guibg=red |
359 | syn match ExtraWhitespace /\s\+$/ | 379 | syn match ExtraWhitespace /\s\+$/ |
360 | augroup END | 380 | augroup END "} |
361 | 381 | ||
362 | augroup set_window_title " { | 382 | augroup set_window_title " { |
363 | " autocmd BufWinEnter quickfix setl statusline=%t | 383 | " autocmd BufWinEnter quickfix setl statusline=%t |
@@ -499,6 +519,8 @@ else | |||
499 | endif | 519 | endif |
500 | 520 | ||
501 | 521 | ||
522 | highlight ExtraWhitespace ctermbg=red guibg=red | ||
523 | syn match ExtraWhitespace /\s\+$/ | ||
502 | 524 | ||
503 | 525 | ||
504 | if !has('nvim') | 526 | if !has('nvim') |