Permalink
Browse files

Set up Ctrl+Shift+f to ack for the current word, but display the word…

… itself
  • Loading branch information...
1 parent 1581bea commit 4ac285015ee1861d948521c31715f20fe2d2e81f Patrick Byrne committed Apr 29, 2012
Showing with 5 additions and 2 deletions.
  1. +0 −2 src/gvimrc
  2. +5 −0 src/vimrc
View
@@ -5,8 +5,6 @@ colorscheme github
set gfn=Monaco:h14 " set to a bigger, nicer font than the default
" Command-Shift-F for Ack
map <D-F> :Ack<space>
-" Ctrl-Shift-F for Ack on current word
-map <C-F> :Ack<space><cword><space>
" Command-/ to toggle comments
map <D-/> <plug>NERDCommenterToggle<CR>
View
@@ -133,6 +133,11 @@ nmap <C-Down> ]e
vmap <C-Up> [egv
vmap <C-Down> ]egv
+" ack for current word (based on cursor)
+" Ctrl-Shift-F for Ack on current word
+map <C-F> :Ack<space><C-r><C-w>
+
+
" CTags shortcuts
map <Leader>rt :!ctags --extra=+f -R *<CR><CR>
" open definition in a new tab

0 comments on commit 4ac2850

Please sign in to comment.