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.
* \ma - clear all marks
* \mh - clear current mark
* ,bb - toggle local anonymous bookmark at current location
* ,bn ,bp - next and previous anonymous bookmark
* ,bc - clear anonymous bookmarks
* ,Bt - toggle local anonymous bookmark at current location
* ,Bn ,Bp - next and previous anonymous bookmark
* ,Bc - clear anonymous bookmarks
**LustyJuggler**
* ,b - 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
* ,lj - show buffers (LustyJuggler buffer search), just type to fuzzy match a buffer name
**Rails**
@ -203,6 +200,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
**File Navigation**
* ,t - Command-T fuzzy file selector
* ,b - Command-T buffer selector
* ,jm jump (command-t) app/models
* ,jc app/controllers
* ,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**
* ,m - NERDTree toggle
* Cmd-N - NERDTree toggle
* Ctrl-\ - Show current file tree
**Utility**

View File

@ -1,4 +1,4 @@
" Make nerdtree look nice
let NERDTreeMinimalUI = 1
let NERDTreeMinimalUI = 1
let NERDTreeDirArrows = 1
let g:NERDTreeWinSize = 30
let g:NERDTreeWinSize = 30

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:LustyJugglerAltTabMode = 1
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
" but this gives warnings under command line vim
" use only in macvim
if has('gui_running')
if v:version > '702'
set undodir=~/.vim/backups
set undofile
endif

View File

@ -2,6 +2,11 @@
" 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'
" even if the cursor is halfway inside the word
" FIXME: will not properly repeat when you use a dot (tie into repeat.vim)
@ -49,8 +54,8 @@ nnoremap ,. '.
nmap ,ru :AV<CR>
" ==== NERD tree
" ,m is less stressful on the fingers than ,n
nmap ,m :NERDTreeToggle<CR>
" Cmd-Shift-N for nerd tree
nmap <D-N> :NERDTreeToggle<CR>
" ,q to toggle quickfix window (where you have stuff like GitGrep)
" ,oq to open it back up (rare)
@ -179,10 +184,10 @@ nmap sk :SplitjoinJoin<cr>
" ============================
"
" Set anonymous bookmarks
nmap ,bb :ToggleBookmark<cr>
nmap ,bn :NextBookmark<cr>
nmap ,bp :PreviousBookmark<cr>
nmap ,bc :ClearBookmarks<cr>
nmap ,Bb :ToggleBookmark<cr>
nmap ,Bn :NextBookmark<cr>
nmap ,Bp :PreviousBookmark<cr>
nmap ,Bc :ClearBookmarks<cr>
"
" ============================
" Abbreviations to use...