TermOpen
A smarter termopen
function for NeoVim.
Install
Plug 'RyanScottLewis/term-open.vim'
Plug: Plugin 'RyanScottLewis/term-open.vim'
Vundle: Manual
Assumes
$runtimepath
is some path from your VIMruntimepath
variable.
Standard
git clone https://github.com/RyanScottLewis/term-open.vim.git
cd term-open.vim
cp doc/term-open.txt $runtimepath/doc/
cp plugin/term-open.vim $runtimepath/plugin/
VIM Package
cd $runtimepath/pack/bundle/start
git clone https://github.com/RyanScottLewis/term-open.vim.git
Usage
" In a new tab in insert mode
:call TermOpen({ "location" : "tab", "insert" : 1 })
:TermOpen location=tab insert=1
:TermOpen location=tab insert
" Shortcut for opening a new window at the bottom of the screen, resized, and started in insert mode
:call TermOpen({ "console" : 1 })
:TermOpen console
To use with Startify, you need to set the location
option ("buffer"
is recommended):
let g:startify_commands = [
\ {'h': [ 'Help', ':help' ]},
\ {'t': [ 'Terminal', 'call TermOpen("/bin/zsh", {
\ "location" : "buffer",
\ "insert" : 1
\ })' ]}
\ ]
Documentation
Refer to :help term-open
for more usage instructions.
Contributing
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- RyanScottLewis Ryan Scott Lewis - creator, maintainer