diff --git a/vimrc b/vimrc index 1086453..aed63b4 100644 --- a/vimrc +++ b/vimrc @@ -44,6 +44,7 @@ Plugin 'mkitt/tabline.vim' " Conf files Plugin 'robbles/logstash.vim' Plugin 'sclo/haproxy.vim' +Plugin 'evanmiller/nginx-vim-syntax' " Snipmate Plugin 'MarcWeber/vim-addon-mw-utils' @@ -266,6 +267,10 @@ map c NERDCommenterToggle inoremap inoremap +" diffput/diffget +nnoremap dp :diffput +nnoremap dg :diffget + " Line/block move up/down if (has('mac') || has('macunix')) nnoremap :m .+1== @@ -355,6 +360,9 @@ if has("autocmd") \ if line("'\"") > 0 && line ("'\"") <= line("$") | \ exe "normal g'\"" | \ endif + " If doing a diff. Upon writing changes to file, automatically update the differences + autocmd BufWritePost * if &diff == 1 | diffupdate | endif + " Mako autocmd! BufRead,BufNewFile *.mako setfiletype mako autocmd BufWinEnter *.mako setfiletype mako