Skip to content

Instantly share code, notes, and snippets.

@chauncey-garrett
Created March 25, 2014 23:31
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save chauncey-garrett/9773770 to your computer and use it in GitHub Desktop.
Save chauncey-garrett/9773770 to your computer and use it in GitHub Desktop.
Use to replace less with vim for syntax highlighting, among other benefits...
# Add vi customization to less
VLESS=$(find /usr/share/vim -name 'less.sh')
if [ ! -z $VLESS ]; then
alias less=$VLESS
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment