aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2017-04-28 17:06:55 +0200
committerMax Christian Pohle2017-04-28 17:06:55 +0200
commit25a9f9ad3e2481f21f9d0c2fa749258ae206b322 (patch)
tree0f59fd253e100563bd4591ddeb97e962c575bb72
parent2de245f6cee6463943d12b29e6ef8ce260568c95 (diff)
downloadvim-25a9f9ad3e2481f21f9d0c2fa749258ae206b322.tar.bz2
vim-25a9f9ad3e2481f21f9d0c2fa749258ae206b322.zip
fixed order, added some cscope shortcuts from vim.wikia
-rw-r--r--vimrc28
1 files changed, 25 insertions, 3 deletions
diff --git a/vimrc b/vimrc
index 78f34a1..e733275 100644
--- a/vimrc
+++ b/vimrc
@@ -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)
338endif 338endif
339 339
340
341if 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
357endif
358
359
340if bufname('%') == '' 360if bufname('%') == ''
341 set bufhidden=wipe 361 set bufhidden=wipe
342endif 362endif
343 363
344noautocmd 364" noautocmd
345 365
346if has("autocmd") 366if 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
499endif 519endif
500 520
501 521
522highlight ExtraWhitespace ctermbg=red guibg=red
523syn match ExtraWhitespace /\s\+$/
502 524
503 525
504if !has('nvim') 526if !has('nvim')
..