Leader is now comma; General keymap cleanup - see README

This commit is contained in:
yan 2012-01-20 18:01:06 -08:00
parent 3e2e099153
commit 4a7df20fd1
5 changed files with 20 additions and 38 deletions

View File

@ -166,16 +166,13 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
* \mm - set the next available mark (set a mark with mX where X is a letter, navigate to mark using 'X). Uppercase marks to mark files, lowercase marks to use within a file. * \mm - set the next available mark (set a mark with mX where X is a letter, navigate to mark using 'X). Uppercase marks to mark files, lowercase marks to use within a file.
* \ma - clear all marks * \ma - clear all marks
* \mh - clear current mark * \mh - clear current mark
* ,bb - toggle local anonymous bookmark at current location * ,Bt - toggle local anonymous bookmark at current location
* ,bn ,bp - next and previous anonymous bookmark * ,Bn ,Bp - next and previous anonymous bookmark
* ,bc - clear anonymous bookmarks * ,Bc - clear anonymous bookmarks
**LustyJuggler** **LustyJuggler**
* ,b - show buffers (LustyJuggler buffer search), just type to fuzzy match a buffer name * ,lj - show buffers (LustyJuggler buffer search), just type to fuzzy match a buffer name
* ,s - Show buffers in LustyJuggler (use asdfjkl home row keys to then select buffer)
* ,lf - lusty file finder
* ,lr - lusty file finder from current folder
**Rails** **Rails**
@ -203,6 +200,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
**File Navigation** **File Navigation**
* ,t - Command-T fuzzy file selector * ,t - Command-T fuzzy file selector
* ,b - Command-T buffer selector
* ,jm jump (command-t) app/models * ,jm jump (command-t) app/models
* ,jc app/controllers * ,jc app/controllers
* ,jv app/views * ,jv app/views
@ -244,7 +242,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
**NERDTree Project Tree** **NERDTree Project Tree**
* ,m - NERDTree toggle * Cmd-N - NERDTree toggle
* Ctrl-\ - Show current file tree * Ctrl-\ - Show current file tree
**Utility** **Utility**

View File

@ -1,24 +1,3 @@
" LustyJuggler
" ========================================
" better triggers for buffer switching
" B to use the a/s/d/f juggler, S to search the buffers
nmap <silent> ,b \lj
nmap <silent> ,s \lb
" Remap using comma for the leader
" lusty file explorer
nmap <silent> ,lf \lf
" lusty file explorer from current location
nmap <silent> ,lr \lr
" lusty buffer juggler (alternative mapping)
nmap <silent> ,lb \lb
" lusty buffer juggler (alternative mapping)
nmap <silent> ,lj \lj
let g:LustyJugglerSuppressRubyWarning = 1 let g:LustyJugglerSuppressRubyWarning = 1
let g:LustyJugglerAltTabMode = 1 let g:LustyJugglerAltTabMode = 1
let g:LustyJugglerShowKeys = 'a' " show a/s/d/f keys let g:LustyJugglerShowKeys = 'a' " show a/s/d/f keys

View File

@ -1,7 +1,7 @@
" persistent undos - undo after you re-open the file " persistent undos - undo after you re-open the file
" but this gives warnings under command line vim " but this gives warnings under command line vim
" use only in macvim " use only in macvim
if has('gui_running') if v:version > '702'
set undodir=~/.vim/backups set undodir=~/.vim/backups
set undofile set undofile
endif endif

View File

@ -2,6 +2,11 @@
" General vim sanity improvements " General vim sanity improvements
" ======================================== " ========================================
" "
"
" Change leader to a comma because the backslash is too far away
" That means all \x commands turn into ,x
let mapleader=","
" alias yw to yank the entire word 'yank inner word' " alias yw to yank the entire word 'yank inner word'
" even if the cursor is halfway inside the word " even if the cursor is halfway inside the word
" FIXME: will not properly repeat when you use a dot (tie into repeat.vim) " FIXME: will not properly repeat when you use a dot (tie into repeat.vim)
@ -49,8 +54,8 @@ nnoremap ,. '.
nmap ,ru :AV<CR> nmap ,ru :AV<CR>
" ==== NERD tree " ==== NERD tree
" ,m is less stressful on the fingers than ,n " Cmd-Shift-N for nerd tree
nmap ,m :NERDTreeToggle<CR> nmap <D-N> :NERDTreeToggle<CR>
" ,q to toggle quickfix window (where you have stuff like GitGrep) " ,q to toggle quickfix window (where you have stuff like GitGrep)
" ,oq to open it back up (rare) " ,oq to open it back up (rare)
@ -179,10 +184,10 @@ nmap sk :SplitjoinJoin<cr>
" ============================ " ============================
" "
" Set anonymous bookmarks " Set anonymous bookmarks
nmap ,bb :ToggleBookmark<cr> nmap ,Bb :ToggleBookmark<cr>
nmap ,bn :NextBookmark<cr> nmap ,Bn :NextBookmark<cr>
nmap ,bp :PreviousBookmark<cr> nmap ,Bp :PreviousBookmark<cr>
nmap ,bc :ClearBookmarks<cr> nmap ,Bc :ClearBookmarks<cr>
" "
" ============================ " ============================
" Abbreviations to use... " Abbreviations to use...