diff --git a/keybindings.vim b/keybindings.vim index a102012..72a9de5 100644 --- a/keybindings.vim +++ b/keybindings.vim @@ -1,3 +1,11 @@ +nmap zz +nmap zz +nmap n nzzzv +nmap N Nzzzv +nmap x !chmod +x % + +xnoremap p "_dP + nnoremap :set paste!set paste? nnoremap :set spell!set spell? @@ -5,6 +13,9 @@ nnoremap :set spell!set spell? vnoremap < >gv +vnoremap J :m '>+1gv=gv +vnoremap K :m '<-2gv=gv + " for toggling/hiding the split-term tnoremap :FloatermToggle floatterm tnoremap @@ -56,13 +67,13 @@ nnoremap Co :ChatGPTRun optimize_code nnoremap Cs :ChatGPTRun summarize nnoremap Cf :ChatGPTRun fix_bugs nnoremap Ce :ChatGPTRun explain -xmap Ci :lua require('chatgpt').edit_with_instructions() -xmap Cd :ChatGPTRun docstring -xmap Ct :ChatGPTRun add_tests -xmap Co :ChatGPTRun optimize_code -xmap Cs :ChatGPTRun summarize -xmap Cf :ChatGPTRun fix_bugs -xmap Ce :ChatGPTRun explain +xnoremap Ci :lua require('chatgpt').edit_with_instructions() +xnoremap Cd :ChatGPTRun docstring +xnoremap Ct :ChatGPTRun add_tests +xnoremap Co :ChatGPTRun optimize_code +xnoremap Cs :ChatGPTRun summarize +xnoremap Cf :ChatGPTRun fix_bugs +xnoremap Ce :ChatGPTRun explain nnoremap fb :Telescope file_browser nnoremap ff :Telescope find_files