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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user