109

GitHub - wvffle/vimterm: Simple :terminal at the bottom of workspace for neovim

 6 years ago
source link: https://github.com/wvffle/vimterm
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

vimterm

68747470733a2f2f63646e2e7261776769742e636f6d2f777666666c652f76696d7465726d2f73637265656e73686f74732f776166662534306e7961726368322e706e67

vimterm provides simple window with neovim's :terminal at the bottom of the screen.

But why? That's a good question. vimterm lets you operate with your files and have a single terminal window attached to the bottom of your workspace. For example, you can create a mapping to compile c++ programs with g++ without leaving your best editor.

Example mappings could look like this:

nnoremap <silent> <F4> :call vimterm#run('g++  -o /tmp/out' . expand('%')) <CR>
nnoremap <silent> <F5> :call vimterm#exec('/tmp/out') <CR>

nnoremap <F7> :call vimterm#toggle() <CR>
tnoremap <F7> <C-\><C-n>:call vimterm#toggle() <CR>

installation

Basically it's the same as every other plugin, so you can use dein for that:

call dein#add('wvffle/vimterm')

screenshots

68747470733a2f2f63646e2e7261776769742e636f6d2f777666666c652f76696d7465726d2f73637265656e73686f74732f776166662534306e7961726368322e706e67

68747470733a2f2f63646e2e7261776769742e636f6d2f777666666c652f76696d7465726d2f73637265656e73686f74732f776166662534306e79617263682e706e67

68747470733a2f2f63646e2e7261776769742e636f6d2f777666666c652f76696d7465726d2f73637265656e73686f74732f6769742e706e67

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK