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
|
dbr = diff --name-status
|
||||||
# show diff of cached files
|
# show diff of cached files
|
||||||
gdc = diff --cached
|
gdc = diff --cached
|
||||||
|
# show changed files for a commit
|
||||||
|
cf = show --pretty="format:" --name-only
|
||||||
|
|
||||||
# stash shortcuts
|
# stash shortcuts
|
||||||
sp = stash pop
|
sp = stash pop
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ if has("autocmd")
|
|||||||
"autocmd BufWritePost .vimrc source $MYVIMRC
|
"autocmd BufWritePost .vimrc source $MYVIMRC
|
||||||
" save all files on focus lost, ignoring warnings about untitled buffers
|
" save all files on focus lost, ignoring warnings about untitled buffers
|
||||||
autocmd FocusLost * silent! wa
|
autocmd FocusLost * silent! wa
|
||||||
|
autocmd BufNewFile,BufRead *.json set filetype=javascript
|
||||||
autocmd BufNewFile,BufRead *.ejs set filetype=html
|
autocmd BufNewFile,BufRead *.ejs set filetype=html
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user