Added au for json, git alias

+ added git alias for showing the files that were changed/added/removed
for a specific commit
+ added au for json to make it show as JavaScript in vim
This commit is contained in:
Nick Nisi
2012-05-30 15:02:55 -05:00
parent fb55bd7128
commit 8a240bb218
2 changed files with 3 additions and 0 deletions

View File

@@ -15,6 +15,8 @@
dbr = diff --name-status
# show diff of cached files
gdc = diff --cached
# show changed files for a commit
cf = show --pretty="format:" --name-only
# stash shortcuts
sp = stash pop

View File

@@ -59,6 +59,7 @@ if has("autocmd")
"autocmd BufWritePost .vimrc source $MYVIMRC
" save all files on focus lost, ignoring warnings about untitled buffers
autocmd FocusLost * silent! wa
autocmd BufNewFile,BufRead *.json set filetype=javascript
autocmd BufNewFile,BufRead *.ejs set filetype=html
endif