A try to turn off formating in git.

This commit is contained in:
Vahagn Khachatryan
2014-10-31 13:31:17 +04:00
parent 9cc164379b
commit f9b6e3fb4e

View File

@@ -114,10 +114,6 @@ if has('autocmd')
autocmd FileType python setlocal expandtab
endif
" P4
command! -nargs=* PFedit :!p4 edit <args> %
command! -nargs=* PFrevert :!p4 revert <args> %
command! -nargs=* PFdiff :!p4 diff <args> %
" Only do this part when compiled with support for autocommands.
if has("autocmd")
@@ -183,6 +179,13 @@ function MyDiff()
silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
endfunction
" Don't let vim be too smart.
set formatoptions=cql
"
" P4
command! -nargs=* PFedit :!p4 edit <args> %
command! -nargs=* PFrevert :!p4 revert <args> %
command! -nargs=* PFdiff :!p4 diff <args> %
"
" Loads CF5Compile
" Compile and run file if Ctrl-F5 is pressed.