Added ,oq for open quickfix, and ,q to close it

This commit is contained in:
yan
2011-12-17 00:46:02 -08:00
parent 13010de156
commit 34b0c445e5
3 changed files with 8 additions and 5 deletions

View File

@@ -158,7 +158,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
Search/Code Navigation
* ,f - instantly Find definition of class (must have exuberant ctags installed)
* K - GitGrep the current word under the cursor
* K - GitGrep the current word under the cursor and show results in quickfix window
* Cmd-* - highlight all occurrences of current word (similar to regular * except doesn't move)
* ,hl - toggle search highlight on and off
* ,gg - GitGrep command line with a quote pretyped (close the quote yourself)
@@ -182,6 +182,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
* Cmd-H and Cmd-L - left an right on tabs
* ,, to zoom a window to max size and again to unzoom it (ZoomWin standard Ctrl-w,o)
* Use Cmd-1..Cmd-0 to switch to a specific tab number (like iTerm) - and tabs have been set up to show numbers
* ,q to close the quickfix and ,oq to open the quickfix (great for lookin at Ack or GitGrep results)
Utility
@@ -189,7 +190,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
* ,cc - (Current command) copies the command under your cursor and executes it in vim. Great for testing single line changes to vimrc.
* ,yw - yank a word from anywhere within the word (so you don't have to go to the beginning of it)
* ,ow - overwrite a word with whatever is in your yank buffer - you can be anywhere on the word. saves having to visually select it
* gcc (comment a line) via tComment (standard)
* Cmd-/ - toggle comments (usually gcc from tComment)
* gcp (comment a paragraph) added
* ,t - Command-T fuzzy file selector (alternative to PeepOpen / LustyJuggler)

View File

@@ -42,6 +42,11 @@ nmap ,ru :AV<CR>
" ,m is less stressful on the fingers than ,n
nmap ,m :NERDTreeToggle<CR>
" ,q to toggle quickfix window (where you have stuff like GitGrep)
" ,oq to open it back up (rare)
nmap <silent> ,q :cclose<CR>
nmap <silent> ,oq :copen<CR>
" move up/down quickly by using Ctrl-j, Ctrl-k
" which will move us around by functions
nnoremap <silent> <C-j> }

3
vimrc
View File

@@ -126,6 +126,3 @@ set viminfo='100,f1
" term for running tests
"
autocmd WinEnter * stopinsert
" Auto save when we go elsewhere
au FocusLost * :wa