nvim: Set shortcuts for setting fold methods

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-04-06 20:56:36 +05:30
parent 537f3021a4
commit cc0f55cec3

View file

@ -325,6 +325,12 @@ nnoremap ]p :ptnext<CR>
nnoremap po :ppop<CR> nnoremap po :ppop<CR>
nnoremap pc :pc<CR> nnoremap pc :pc<CR>
nnoremap pi :psearch <C-R><C-W><CR> nnoremap pi :psearch <C-R><C-W><CR>
" Short cuts for setting fold methods
nnoremap zmi :set foldmethod=indent<CR>
nnoremap zmm :set foldmethod=manual<CR>
nnoremap zme :set foldmethod=expr<CR>
nnoremap zmk :set foldmethod=marker<CR>
nnoremap zms :set foldmethod=syntax<CR>
" Key Bindings to help with terminal mode " Key Bindings to help with terminal mode
:tnoremap jk <C-\><C-n> :tnoremap jk <C-\><C-n>