nvim: Add simple terminal toggle plugin

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-05-23 15:48:27 +05:30
parent 800d725c28
commit 8c1b5dd9b3
2 changed files with 5 additions and 1 deletions

View file

@ -64,6 +64,8 @@ Plug 'liuchengxu/vim-which-key'
Plug 'christoomey/vim-system-copy'
" Signs for entries in location list or quickfix lists
Plug 'dhruvasagar/vim-markify'
" Toggle terminal
Plug 'caenrique/nvim-toggle-terminal'
" Language support & syntax highlighting
" Haskell
Plug 'neovimhaskell/haskell-vim'

View file

@ -124,7 +124,9 @@ nnoremap zmk :set foldmethod=marker<CR>
nnoremap zms :set foldmethod=syntax<CR>
" Key Bindings to help with terminal mode
:tnoremap jk <C-\><C-n>
tnoremap jk <C-\><C-n>
nnoremap <silent> <C-z> :ToggleTerminal<Enter>
tnoremap <silent> <C-z> <C-\><C-n>:ToggleTerminal<Enter>
" Key bindings to move between window splits
for key in range(0, 9)
execute 'nnoremap <Space>'.key key.'<C-w>w'