RyanScottLewis / term-open.vim

A smarter termopen function for NeoVim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TermOpen

A smarter termopen function for NeoVim.

Install

Plug: Plug 'RyanScottLewis/term-open.vim'

Vundle: Plugin 'RyanScottLewis/term-open.vim'

Manual

Assumes $runtimepath is some path from your VIM runtimepath 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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

A smarter termopen function for NeoVim.

License:MIT License


Languages

Language:Vim Script 100.0%