Skip to content

Instantly share code, notes, and snippets.

@NatWeiss
Created August 12, 2022 17:28
Show Gist options
  • Save NatWeiss/665086fc1f5eda8a89b5e7c980094596 to your computer and use it in GitHub Desktop.
Save NatWeiss/665086fc1f5eda8a89b5e7c980094596 to your computer and use it in GitHub Desktop.
Fish vim function
function my_vim
if test $argv[2..-1]
nvim $argv[2..-1]
else if jobs
#echo 'has jobs'
fg
else
#echo 'no jobs'
nvim
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment