Skip to content

Instantly share code, notes, and snippets.

@kidpixo
Created March 15, 2023 12:45
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 kidpixo/73b2f3b336d5179f62980ce447247e9b to your computer and use it in GitHub Desktop.
Save kidpixo/73b2f3b336d5179f62980ce447247e9b to your computer and use it in GitHub Desktop.
Open a new vim file with syntaxt highlight set from cli. example : vimscratch python.
# open a new vim file with syntaxt highlight set at cli.
# example : vimscratch python
# default : open a new file directly skipping github.com/mhinz/vim-startify
alias vimscratch='_f() { if [ -z "$1" ]; then vim -c "let g:startify_disable_at_vimenter = 1"; else vim -c "let g:startify_disable_at_vimenter = 1" -c "set ft:$1" -c "set ft";fi }; _f'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment