Better buffer navigation for vim - more shortcuts.
This commit is contained in:
parent
58e0a4fb04
commit
d194615b70
1 changed files with 8 additions and 0 deletions
8
.vimrc
8
.vimrc
|
@ -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 !
|
||||
|
|
Loading…
Reference in a new issue