Update vimrc

master
Hektor Misplon 2020-05-07 12:18:36 +00:00
parent 89fc15a0fb
commit 3df9f87899
1 changed files with 16 additions and 10 deletions

26
.vimrc
View File

@ -36,34 +36,41 @@ endfunc
nnoremap <space> <nop> nnoremap <space> <nop>
let mapleader = " " let mapleader = " "
" splits " split
nmap ss :sp<Return><c-w>w nmap ss :sp<Return><c-w>w
nmap sv :vs<Return><c-w>w nmap sv :vs<Return><c-w>w
" split navigation " split navigate
nnoremap sw <c-w>w
nnoremap sh <c-w>h
nnoremap sj <c-w>j nnoremap sj <c-w>j
nnoremap sk <c-w>k nnoremap sk <c-w>k
nnoremap sl <c-w>l nnoremap sl <c-w>l
nnoremap sh <c-w>h
" split resizing " split resize
nnoremap srh <C-w>< nnoremap srh <C-w><
nnoremap srl <C-w>> nnoremap srl <C-w>>
nnoremap srk <C-w>+ nnoremap srk <C-w>+
nnoremap srj <C-w>- nnoremap srj <C-w>-
" file tree
nnoremap sb :Lex<CR>
" hard mode " hard mode
map <up> <nop> nnoremap <up> <nop>
map <down> <nop> nnoremap <down> <nop>
map <left> <nop> nnoremap <left> <nop>
map <right> <nop> nnoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>
" quick quit " quick quit
nnoremap <leader>w :w<cr> nnoremap <leader>w :w<cr>
nnoremap <leader>q :q<cr> nnoremap <leader>q :q<cr>
" quick exit insert " quick exit insert
inoremap <esc> <nop>
inoremap jj <esc> inoremap jj <esc>
" clear search highlight " clear search highlight
@ -169,7 +176,6 @@ let g:tidal_flash_duration = 50
" plugin keybindings ___________________ " plugin keybindings ___________________
nnoremap <silent> <C-b> :Lex<CR>
nnoremap <c-p> :FZF<cr> nnoremap <c-p> :FZF<cr>
nnoremap <leader>b :Buffers<cr> nnoremap <leader>b :Buffers<cr>
nnoremap <leader>h :History<cr> nnoremap <leader>h :History<cr>