Skip to content

Commit

Permalink
Rearrange function key mappings
Browse files Browse the repository at this point in the history
F1 - default (help)
F2 - pastetoggle
F3 - jump between locations in a quickfix list
F4 - Close current window but keep buffer
F5 - Next window
F6 -
F7 -
F8 - browse oldfiles
F9 - Next buffer
F10 - F12 - unmapped
  • Loading branch information
elifarley committed Apr 18, 2016
1 parent 18165f5 commit 0d1a1d8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ noremenu Encoding.UTF-8 :e ++enc=utf-8<CR>
noremenu Encoding.cp1251 :e ++enc=cp1251<CR>
nnoremap <F12> :emenu Encoding.<C-Z>
nnoremap <F7> :browse oldfiles<CR>
nnoremap <F8> :browse oldfiles<CR>
" Map <F3> and <S-F3> to jump between locations in a quickfix list, or
" differences if in window in diff mode
Expand Down Expand Up @@ -336,11 +336,8 @@ nnoremap ! :!
" http://vim.wikia.com/wiki/Easier_buffer_switching

" List buffers and pick by number
nnoremap <Leader>0 :ls!<CR>:buffer #
" List buffers and pick by name fragment
nnoremap <F8> :ls!<CR>:buffer<Space>
" List buffers and pick by number or name fragment
nnoremap <Leader>0 :ls!<CR>:buffer<Space>
" Next buffer
nnoremap <silent> <F9> :bn<CR>
Expand Down

0 comments on commit 0d1a1d8

Please sign in to comment.