improvements

This commit is contained in:
Bruno Carlin 2020-04-18 13:08:06 +02:00
parent 905217ab20
commit 3a082eba32
5 changed files with 18 additions and 9 deletions

View file

@ -209,6 +209,8 @@ nmap <silent> <space>w<space>w :call mkdir(strftime("diary/%Y/%m"), "p", 0755) \
" Removes trailing whitespaces
nnoremap <leader>s :keeppattern %s/\s\+$//<CR>
" move lines around
nnoremap <A-Down> :m .+1<CR>==
nnoremap <A-Up> :m .-2<CR>==
inoremap <A-Down> <Esc>:m .+1<CR>==gi
@ -221,7 +223,7 @@ nmap <space>cf :cfirst<CR>
nmap <space>cn :cnext<CR>
nmap <space>cp :cprevious<CR>
nmap <space>co :copen<CR>
nmap <space>cc :cclose<CR>
nmap <space>cc :cexpr [] \| cclose<CR>
nmap <space>lf :lfirst<CR>
nmap <space>ln :lnext<CR>
nmap <space>lp :lprevious<CR>
@ -306,4 +308,7 @@ if has("autocmd")
autocmd FileType go nmap <leader>m <Plug>(go-metalinter)
endif
nmap <space>w :w<CR>
nmap <space>w :cexpr [] \| cclose \| w<CR>
nmap <C-b> :b#<CR>
nmap <C-w>M <C-w>_<C-w><BAR>
nmap <C-w>m <C-w>=