Better buffer navigation for vim - more shortcuts.

This commit is contained in:
Cyryl Płotnicki-Chudyk 2015-09-23 16:49:46 +02:00
parent 58e0a4fb04
commit d194615b70

8
.vimrc
View file

@ -3,6 +3,10 @@ set nocompatible
set noswapfile
set undofile
set undodir=$HOME/.vim/undo
" buffers can be switched despite having changes
set hidden
" file settings
set encoding=utf-8
@ -10,6 +14,10 @@ set encoding=utf-8
let mapleader = ","
nmap <leader>p :set paste!<CR>
nmap <leader>h :set hlsearch!<CR>
" navigate buffers by ctrl-b
nmap <C-b> :bprevious<CR>
nnoremap ; :
" no cheating !