Use neovim terminal in the floating window.
- vim-plug
Plug 'voldikss/vim-floaterm'- dein.nvim
call dein#add('voldikss/vim-floaterm')This plugin doesn't supply any default mappings.
""" Example configuration
let g:floaterm_keymap_new = '<F7>'
let g:floaterm_keymap_prev = '<F8>'
let g:floaterm_keymap_next = '<F9>'
let g:floaterm_keymap_toggle = '<F10>'- Toggle terminal window quickly
- Multiple terminal instances
- Customizable floating terminal style
- Switch/Preview floating terminal buffer using vim-clap(try
:Clap floaterm) - Switch/Preview/Open floating terminal buffers using denite.nvim(try
:Denite floaterm)- See the animation GIF in PR #30.
-
Available:
'floating'(neovim only),'normal'(vim8 and neovim) -
Default:
'floating'
- Type:
int(number of columns) orfloat(between 0 and 1). Iffloat, the width is relative to&columns. - Default:
0.6
- Type:
int(number of lines) orfloat(between 0 and 1). Iffloat, the height is relative to&lines. - Default:
0.6
-
Description: The transparency of the floating terminal
-
Default:
0
-
Available:
'center','topleft','topright','bottomleft','bottomright','auto'(at the cursor place) -
Default:
'center'
-
Type: string(e.g.
'#000000','black') -
Default: background color of normal floating window
- Default:
['─', '│', '─', '│', '┌', '┐', '┘', '└']
-
Type: string(e.g.
'#FFFFFF','blue') -
Default: foreground color of normal floating window
-
Type: string(e.g.
'#FFFFFF','blue') -
Default: Same as
g:floaterm_background
-
:FloatermNew -
:FloatermToggle -
:FloatermPrev -
:FloatermNext
-
Put this code in
vimrcautocmd User Startified setlocal buflisted
-
Set
shelloption in yourvimrc:set shell=/path/to/shell
-
Use
autocmd. For examplefunction s:floatermSettings() setlocal number " more settings endfunction autocmd FileType floaterm call s:floatermSettings()
