Skip to content

Instantly share code, notes, and snippets.

@kevinmartinjos
Created November 21, 2020 15:18
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kevinmartinjos/f38a204d29d5af46f9c82a383cc7a714 to your computer and use it in GitHub Desktop.
function! LoadTerminal()
let bnr = bufnr('!/bin/bash')
if bnr > 0
:sbuffer !/bin/bash
else
:term
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment