nvim: Set shortcuts for setting fold methods
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
537f3021a4
commit
cc0f55cec3
1 changed files with 6 additions and 0 deletions
|
@ -325,6 +325,12 @@ nnoremap ]p :ptnext<CR>
|
|||
nnoremap po :ppop<CR>
|
||||
nnoremap pc :pc<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
|
||||
:tnoremap jk <C-\><C-n>
|
||||
|
|
Loading…
Reference in a new issue