Skip to content

Commit

Permalink
New key mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
Amiel Martin committed Jul 15, 2014
1 parent bddfd72 commit 7d61200
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions home/vimrc
Expand Up @@ -196,20 +196,30 @@ highlight Title term=NONE cterm=NONE ctermbg=235 ctermfg=238
" center cursor position in screen
nmap <space> zz
map <leader>y "*y
map <leader>a =ip
" apply macros easily with Q
nnoremap Q @q
vnoremap Q :norm @q<cr>
set pastetoggle=<leader>z

" Move around splits with <c-hjkl>
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
nnoremap <c-h> <c-w>h
nnoremap <c-l> <c-w>l
" rotate windows
nnoremap <c-w><c-o> <c-w>r
nnoremap <c-s> <c-w>j<c-w>=
" nnoremap <c-+> <c-w>+
" nnoremap <c--> <c-w>-

" shift l/h to switch tabs
noremap <S-l> gt
noremap <S-h> gT

" New vertical split, switch to it
Expand Down Expand Up @@ -246,7 +256,7 @@ nnoremap <leader><leader> <c-^>
nnoremap / /\v
vnoremap / /\v
map ,= mzgg=G`z
map <leader>= mzgg=G`z


Expand Down Expand Up @@ -282,11 +292,11 @@ let g:CommandTWildIgnore=&wildignore . ",node_modules/**"

" Open files with <leader>h
map <leader>h :CommandT<cr>
map <leader>f :CommandTFlush<cr>\|:CommandT<cr>
" Open files, limited to the directory of the current file, with <leader>gf
" Open files, limited to the directory of the current file
" This requires the %% mapping found below.
map <leader>nh :CommandTFlush<cr>\|:CommandT %%<cr>
map <leader>nb :CommandTFlush<cr>\|:CommandTBuffer<cr>
map <leader>nt :CommandTFlush<cr>\|:CommandTBuffer<cr>
map <leader>nad :CommandT app/admin<cr>
map <leader>nas :CommandT app/assets<cr>
Expand Down

0 comments on commit 7d61200

Please sign in to comment.