Leader is now comma; General keymap cleanup - see README
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user