better splitting and joining vim

This commit is contained in:
Christoph J. Scherr 2023-07-07 13:27:30 +02:00
parent 55d0a08377
commit c8dfd1ad28
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
1 changed files with 7 additions and 0 deletions

View File

@ -103,6 +103,13 @@ map <Leader>% :split<CR>
" join with <leader>j " join with <leader>j
nnoremap <leader>j :join<CR> nnoremap <leader>j :join<CR>
" join up with <leader>J
nnoremap <leader>J :move .-2<CR> :join<CR>
" split lines with <leader>s
nnoremap <leader>s i<CR><ESC>
" split lines up with <leader>S
nnoremap <leader>S i<CR><ESC> V:m -2<CR>
" move screen a line up/down with alt U/D " move screen a line up/down with alt U/D
nmap <A-u> kzz nmap <A-u> kzz