-
-
Save pianocomposer321/f0d00732e4c7d78c30c4708d2fe660aa to your computer and use it in GitHub Desktop.
Neoterm integration (snippet from my init.vim)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:term_height = 12 | |
fun! RunCurrentFile(command) | |
exec 'botright Topen resize=' . g:term_height | |
Tclear! | |
exec "T " . a:command . " " . expand("%") | |
endf | |
fun! RunCommand(command) | |
exec 'botright Topen resize=' . g:term_height | |
Tclear! | |
exec "T " . a:command | |
endf | |
noremap <silent> <leader>o :exec 'botright Ttoggle resize=' . g:term_height<cr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment