Created
March 15, 2023 12:45
-
-
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.
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
# 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