vim: add mapping to lisr buffers and switch

This commit is contained in:
Fernando Schauenburg 2021-08-30 11:27:12 +02:00
parent 9cba97d32b
commit 20c3128b11

View file

@ -175,6 +175,9 @@ nnoremap <c-l> <c-w>l
nnoremap <c-n> :tabprevious<cr> nnoremap <c-n> :tabprevious<cr>
nnoremap <c-m> :tabnext<cr> nnoremap <c-m> :tabnext<cr>
" show list of buffers and prepare to switch
nnoremap <leader>bf :ls<CR>:b<Space>
" quickly change background " quickly change background
nnoremap <leader>bg nnoremap <leader>bg
\ :let &background = &background ==? 'light' ? 'dark' : 'light'<cr> \ :let &background = &background ==? 'light' ? 'dark' : 'light'<cr>