Skip to content

Instantly share code, notes, and snippets.

@alvin2ye
Created July 24, 2009 14:54
Show Gist options
  • Save alvin2ye/154333 to your computer and use it in GitHub Desktop.
Save alvin2ye/154333 to your computer and use it in GitHub Desktop.
install vim javascript syntax
#!/usr/bin/env bash
# - indent
# OP javascript indentation : This indentation script for OOP javascript (especially for EXTJS)
# http://www.vim.org/scripts/script.php?script_id=1936
echo "-install indent "
cd ~/.vim/indent || mkdir -p ~/.vim/indent
wget http://www.vim.org/scripts/download_script.php?src_id=7708 -O ~/.vim/indent/javascript.vim
# - syntax
# JavaScript syntax : Better JavaScrirpt syntax support
# http://www.vim.org/scripts/script.php?script_id=1491
echo "-install syntax"
cd ~/.vim/syntax || mkdir -p ~/.vim/syntax
wget http://www.vim.org/scripts/download_script.php?src_id=10728 -O ~/.vim/syntax/javascript.vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment