Skip to content

Instantly share code, notes, and snippets.

@pianocomposer321
Created November 16, 2020 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pianocomposer321/f0d00732e4c7d78c30c4708d2fe660aa to your computer and use it in GitHub Desktop.
Save pianocomposer321/f0d00732e4c7d78c30c4708d2fe660aa to your computer and use it in GitHub Desktop.
Neoterm integration (snippet from my init.vim)
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