update keybindings

This commit is contained in:
ksyasuda 2023-08-13 21:39:44 -07:00
parent 5c61955c2d
commit 21931b449a
No known key found for this signature in database

View File

@ -1,3 +1,11 @@
nmap <C-d> <C-d>zz
nmap <C-u> <C-u>zz
nmap n nzzzv
nmap N Nzzzv
nmap <silent> <leader>x <cmd>!chmod +x %<CR>
xnoremap <leader>p "_dP
nnoremap <F4> :set paste!<Bar>set paste?<CR>
nnoremap <F5> :set spell!<Bar>set spell?<CR>
@ -5,6 +13,9 @@ nnoremap <F5> :set spell!<Bar>set spell?<CR>
vnoremap < <gv
vnoremap > >gv
vnoremap J :m '>+1<CR>gv=gv
vnoremap K :m '<-2<CR>gv=gv
" for toggling/hiding the split-term
tnoremap <C-T> <C-\><C-n>:FloatermToggle floatterm<CR>
tnoremap <Esc> <C-\><C-n>
@ -56,13 +67,13 @@ nnoremap <silent> <leader>Co :ChatGPTRun optimize_code<CR>
nnoremap <silent> <leader>Cs :ChatGPTRun summarize<CR>
nnoremap <silent> <leader>Cf :ChatGPTRun fix_bugs<CR>
nnoremap <silent> <leader>Ce :ChatGPTRun explain<CR>
xmap <silent> <leader>Ci :lua require('chatgpt').edit_with_instructions()<CR>
xmap <silent> <leader>Cd :ChatGPTRun docstring<CR>
xmap <silent> <leader>Ct :ChatGPTRun add_tests<CR>
xmap <silent> <leader>Co :ChatGPTRun optimize_code<CR>
xmap <silent> <leader>Cs :ChatGPTRun summarize<CR>
xmap <silent> <leader>Cf :ChatGPTRun fix_bugs<CR>
xmap <silent> <leader>Ce :ChatGPTRun explain<CR>
xnoremap <silent> <leader>Ci :lua require('chatgpt').edit_with_instructions()<CR>
xnoremap <silent> <leader>Cd :ChatGPTRun docstring<CR>
xnoremap <silent> <leader>Ct :ChatGPTRun add_tests<CR>
xnoremap <silent> <leader>Co :ChatGPTRun optimize_code<CR>
xnoremap <silent> <leader>Cs :ChatGPTRun summarize<CR>
xnoremap <silent> <leader>Cf :ChatGPTRun fix_bugs<CR>
xnoremap <silent> <leader>Ce :ChatGPTRun explain<CR>
nnoremap <leader>fb :Telescope file_browser<cr>
nnoremap <leader>ff :Telescope find_files<cr>