add terminal shortkey and improve movement keys
This commit is contained in:
parent
9f0ddb86cf
commit
5c998f2844
@ -32,13 +32,24 @@ set listchars=tab:·\ ,trail:·
|
|||||||
" display tabs with a leading \cdot
|
" display tabs with a leading \cdot
|
||||||
" trailing whitespace looks like \cdot
|
" trailing whitespace looks like \cdot
|
||||||
|
|
||||||
" Learning to use decent vim.
|
" Movement keys
|
||||||
noremap <Up> <NOP>
|
nnoremap <Up> <NOP>
|
||||||
noremap <Down> <NOP>
|
nnoremap <Down> <NOP>
|
||||||
noremap <Left> <NOP>
|
nnoremap <Left> <NOP>
|
||||||
noremap <Right> <NOP>
|
nnoremap <Right> <NOP>
|
||||||
|
nnoremap <Leader>gg <C-w><C-w>
|
||||||
|
nnoremap <Leader>gh <C-w>h
|
||||||
|
nnoremap <Leader>gj <C-w>j
|
||||||
|
nnoremap <Leader>gk <C-w>k
|
||||||
|
nnoremap <Leader>gl <C-w>l
|
||||||
|
|
||||||
|
" Not too much folding
|
||||||
set foldlevelstart=2
|
set foldlevelstart=2
|
||||||
|
|
||||||
|
" Hmmmm neovim terminals
|
||||||
|
nnoremap <Leader>s :vsplit +:terminal<CR>
|
||||||
|
tnoremap <Esc> <C-\><C-n>
|
||||||
|
|
||||||
" General Options }}}
|
" General Options }}}
|
||||||
|
|
||||||
" Plugins {{{
|
" Plugins {{{
|
||||||
@ -81,7 +92,7 @@ nmap <Leader>a <Plug>(EasyAlign)
|
|||||||
|
|
||||||
let g:EasyMotion_do_mapping=0
|
let g:EasyMotion_do_mapping=0
|
||||||
nmap <Leader>w <Plug>(easymotion-w)
|
nmap <Leader>w <Plug>(easymotion-w)
|
||||||
nmap <Leader>s <Plug>(easymotion-s)
|
nmap <Leader>f <Plug>(easymotion-s)
|
||||||
nmap <Leader>j <Plug>(easymotion-j)
|
nmap <Leader>j <Plug>(easymotion-j)
|
||||||
nmap <Leader>k <Plug>(easymotion-k)
|
nmap <Leader>k <Plug>(easymotion-k)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user