Added ,gcf - git grep references to current file
This commit is contained in:
@@ -291,6 +291,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
|
|||||||
* `,gg` - GitGrep command line, type between quotes
|
* `,gg` - GitGrep command line, type between quotes
|
||||||
* `,gd` - GitGrep def (greps for 'def [function name]') when cursor is over the function name
|
* `,gd` - GitGrep def (greps for 'def [function name]') when cursor is over the function name
|
||||||
* `,gcp` - GitGrep Current Partial to find references to the current view partial
|
* `,gcp` - GitGrep Current Partial to find references to the current view partial
|
||||||
|
* `,gcf` - GitGrep Current File to find references to the current file
|
||||||
* `//` - clear the search
|
* `//` - clear the search
|
||||||
* `,q/` - quickfix window with last search (stolen from Steve Losh)
|
* `,q/` - quickfix window with last search (stolen from Steve Losh)
|
||||||
* `,qa/` - quickfix Ack last search (Steve Losh)
|
* `,qa/` - quickfix Ack last search (Steve Losh)
|
||||||
|
|||||||
@@ -87,9 +87,12 @@ nnoremap <silent> <C-\> :NERDTreeFind<CR>
|
|||||||
map <D-/> :TComment<CR>
|
map <D-/> :TComment<CR>
|
||||||
imap <D-/> <Esc>:TComment<CR>i
|
imap <D-/> <Esc>:TComment<CR>i
|
||||||
|
|
||||||
"open up a git grep line, with a quote started for the search
|
"GitGrep - open up a git grep line, with a quote started for the search
|
||||||
nnoremap ,gg :GitGrep ""<left>
|
nnoremap ,gg :GitGrep ""<left>
|
||||||
|
"GitGrep Current Partial
|
||||||
nnoremap ,gcp :GitGrepCurrentPartial<CR>
|
nnoremap ,gcp :GitGrepCurrentPartial<CR>
|
||||||
|
"GitGrep Current File
|
||||||
|
nnoremap ,gcf :call GitGrep(expand("%:t:r"))<CR>
|
||||||
|
|
||||||
" hit ,f to find the definition of the current class
|
" hit ,f to find the definition of the current class
|
||||||
" this uses ctags. the standard way to get this is Ctrl-]
|
" this uses ctags. the standard way to get this is Ctrl-]
|
||||||
|
|||||||
Reference in New Issue
Block a user