diff options
| author | Max Christian Pohle | 2017-05-26 17:13:00 +0200 |
|---|---|---|
| committer | Max Christian Pohle | 2017-05-26 17:13:00 +0200 |
| commit | 62d48a0daa800127f835d47b8ead3e68ae08b3a2 (patch) | |
| tree | b01dc457eedbdedbcabe76ef8cf9435bbe4c3e4e /vimrc-full | |
| parent | 57bccecda7730f8938b0d7c38ba9588217bc04e7 (diff) | |
| download | vim-karlmarks-62d48a0daa800127f835d47b8ead3e68ae08b3a2.tar.bz2 vim-karlmarks-62d48a0daa800127f835d47b8ead3e68ae08b3a2.zip | |
Minor changes. Defined register @c as shortcut for cscope
Diffstat (limited to 'vimrc-full')
| -rw-r--r-- | vimrc-full | 9 |
1 files changed, 5 insertions, 4 deletions
| @@ -389,11 +389,11 @@ end | |||
| 389 | 389 | ||
| 390 | if has('cscope') " compiled with cscope support? | 390 | if has('cscope') " compiled with cscope support? |
| 391 | " http://vim.wikia.com/wiki/Cscope | 391 | " http://vim.wikia.com/wiki/Cscope |
| 392 | set cscopetag | " CTRL-] uses cscope instead of tags to search for the symbol | 392 | set cscopetag | " CTRL-] uses cscope first, then ctags |
| 393 | set cscopeverbose | 393 | set cscopeverbose |
| 394 | 394 | ||
| 395 | if has('quickfix') | 395 | if has('quickfix') |
| 396 | set cscopequickfix=s-,c-,d-,i-,t-,e- | 396 | set cscopequickfix=s+,c+,d+,i+,t+,e+ |
| 397 | endif | 397 | endif |
| 398 | 398 | ||
| 399 | cnoreabbrev csa cs add | 399 | cnoreabbrev csa cs add |
| @@ -404,6 +404,7 @@ if has('cscope') " compiled with cscope support? | |||
| 404 | cnoreabbrev csh cs help | 404 | cnoreabbrev csh cs help |
| 405 | 405 | ||
| 406 | command! -nargs=0 Cscope cs add $VIMSRC/src/cscope.out $VIMSRC/src | 406 | command! -nargs=0 Cscope cs add $VIMSRC/src/cscope.out $VIMSRC/src |
| 407 | let @c = ":cs find s <cword>" | ||
| 407 | endif | 408 | endif |
| 408 | 409 | ||
| 409 | " GUI_VERSION: | 410 | " GUI_VERSION: |
| @@ -569,8 +570,8 @@ if has("autocmd") | |||
| 569 | " grep all buffers for a given string and return result in a quickfix window | 570 | " grep all buffers for a given string and return result in a quickfix window |
| 570 | let @q = ":cex [] | bufdo vimgrepadd /foo/g % | cw" | 571 | let @q = ":cex [] | bufdo vimgrepadd /foo/g % | cw" |
| 571 | 572 | ||
| 572 | " change to the current working directory | 573 | " change to the current working directory (p like pwd) |
| 573 | let @c = ":lcd %:p:h" | 574 | let @p = ":lcd %:p:h" |
| 574 | 575 | ||
| 575 | " exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s) | 576 | " exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s) |
| 576 | nnoremap Q !!$SHELL<CR> | 577 | nnoremap Q !!$SHELL<CR> |
