From 6b06caa3880a16d68ab2104db4b0c9481e607462 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 21 Oct 2020 16:25:45 +0200 Subject: Added floaterm good stuff for vim --- .config/nvim/bindings.vim | 44 +++++++++++++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 13 deletions(-) (limited to '.config/nvim/bindings.vim') diff --git a/.config/nvim/bindings.vim b/.config/nvim/bindings.vim index dbea3af..1957419 100644 --- a/.config/nvim/bindings.vim +++ b/.config/nvim/bindings.vim @@ -1,3 +1,5 @@ +call which_key#register('\', "g:which_key_map") +let g:which_key_map = {} nnoremap c "_c nnoremap :call NERDComment(0,"toggle") nnoremap : @@ -14,23 +16,39 @@ nnoremap 1 o nnoremap 2 :sp nnoremap 3 :vsp nnoremap 0 q -nnoremap g :G -nnoremap d :Vifm +nnoremap :WhichKey '\' +nnoremap g :FloatermNew lazygit +let g:which_key_map.g = 'lazygit' +nnoremap d :FloatermNew vifm +let g:which_key_map.d = 'vifm' +nnoremap v :FloatermNew vifm +let g:which_key_map.v = 'vifm' nnoremap e :Files +let g:which_key_map.e = 'fzf-files' nnoremap b :Buffers +let g:which_key_map.b = 'fzf-buffers' +nnoremap h :Startify +let g:which_key_map.h = 'startify' nnoremap p :CocList -A --normal yank +let g:which_key_map.p = 'coc-paste' nnoremap s :w -nnoremap w :w:bp:bd # +let g:which_key_map.s = 'write-buffer' +nnoremap k :w:bp:bd # +let g:which_key_map.k = 'write-and-close-buffer' nnoremap x :w:bp:bd # -nmap 1 AirlineSelectTab1 -nmap 2 AirlineSelectTab2 -nmap 3 AirlineSelectTab3 -nmap 4 AirlineSelectTab4 -nmap 5 AirlineSelectTab5 -nmap 6 AirlineSelectTab6 -nmap 7 AirlineSelectTab7 -nmap 8 AirlineSelectTab8 -nmap 9 AirlineSelectTab9 -nmap 0 AirlineSelectTab10 +let g:which_key_map.x = 'write-and-close-buffer' +nmap AirlineSelectTab1 +nmap AirlineSelectTab2 +nmap AirlineSelectTab3 +nmap AirlineSelectTab4 +nmap AirlineSelectTab5 +nmap AirlineSelectTab6 +nmap AirlineSelectTab7 +nmap AirlineSelectTab8 +nmap AirlineSelectTab9 +nmap AirlineSelectTab10 inoremap pumvisible() ? "" : "" inoremap pumvisible() ? "" : "" +let g:floaterm_keymap_toggle = '' +let g:floaterm_keymap_prev = '' +let g:floaterm_keymap_next = '' -- cgit v1.2.3