Skip to content

Commit de894b9

Browse files
authored
Merge pull request #4 from Debajyati/vim-8.0
Vim 8.0
2 parents 3d18b9c + 6ea0d50 commit de894b9

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# TurboTerm.vim
2+
***Requires vim 8.0 or higher***
3+
24
A vim plugin for adding smart/easy terminal integration in Vanilla Vim (*in vimscript*)
35
> It won't work in Neovim - ;(
46
@@ -10,7 +12,7 @@ But it works like a charm in vim :)
1012
Install vim plug or your preferred plugin manager to install the plugin.
1113
If using vim-plug
1214
```vim
13-
Plug 'Debajyati/turboterm.vim', { 'branch': 'vim-8.0' }
15+
Plug 'Debajyati/turboterm.vim', { 'tag': '*' }
1416
```
1517
Save the .vimrc file. Restart Vim.
1618

@@ -56,11 +58,13 @@ Set some keymaps:-
5658
nnoremap <space>th :TurboHor<CR>
5759
" Vertically (based on a default height)
5860
nnoremap <space>tv :TurboVert<CR>
61+
62+
" Toggle terminal on from insert mode
63+
inoremap <C-\> <Esc>:TurboHor<CR>
5964
```
6065

61-
TurboTerm has some built-in keymaps - (If users report that they don't like these keymaps to be provided by default these will be removed in future release)
66+
TurboTerm has a built-in keymap -
6267

63-
- `<C-\>` toggles terminal based on the same half of the total height in horizontal direction.(in insert mode)
6468
- `<C-n>` will directly change the window from terminal mode to normal mode.
6569

6670
If you dont kill the terminal and want to toggle it from terminal mode, you can't. You need to toggle it from normal mode.

plugin/turboterm.vim

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ let g:loaded_turboterm = 1
1212
" Commands to access the TurboToggle function
1313
command! -nargs=+ TurboToggle call g:turboterm#TurboToggle(<f-args>) " (both agruments are strictly required)
1414

15-
" Toggle terminal on from insert mode (keymaps)
16-
inoremap <C-\> <Esc>:TurboToggle down NO_RESIZE<CR>
17-
1815
" Terminal mapping for quickly going back to normal mode
1916
tnoremap <C-n> <C-\><C-n>
2017

0 commit comments

Comments
 (0)