Skip to content

Commit

Permalink
<ALT>+arrows to navigate buffers; <Leader>N -> :enew
Browse files Browse the repository at this point in the history
  • Loading branch information
elifarley committed Apr 18, 2016
1 parent 98f3597 commit 61dc78f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,17 @@ nnoremap <F10> :ls!<CR>:buffer<Space>
" Next buffer
nnoremap <silent> <F9> :bn<CR>
" ALT right-arrow
nmap <silent> <Esc>[1;3C <F9>
imap <silent> <F9> <C-\><C-o><F9>
imap <silent> <Esc>[1;3C <C-\><C-o><F9>
" Previous buffer
nnoremap <silent> <S-F9> :bp<CR>
" ALT left-arrow
nmap <silent> <Esc>[1;3D <S-F9>
imap <silent> <S-F9> <C-\><C-o><S-F9>
imap <silent> <Esc>[1;3D <C-\><C-o><S-F9>
" Next window
nnoremap <F12> <C-W>w
Expand Down Expand Up @@ -402,6 +409,7 @@ nnoremap <Leader>f :find <C-R>='**'<CR>
nnoremap <Leader>ff :find <C-R>=expand('%:p:h') . '/**'<CR>
nnoremap <Leader>n :10new<CR>
nnoremap <Leader>N :enew<CR>
" Close current window but keep buffer (hide it)
nnoremap <F4> <C-w>c
Expand Down

0 comments on commit 61dc78f

Please sign in to comment.