From: Simon Ruderich Date: Sun, 26 Feb 2012 03:29:11 +0000 (+0100) Subject: vimrc: Prefer '..' for strings. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=19e8cb46ebbe4e47414e9310a903a5ddd5145677;p=config%2Fdotfiles.git vimrc: Prefer '..' for strings. --- diff --git a/vimrc b/vimrc index 7a56542..11aae8d 100644 --- a/vimrc +++ b/vimrc @@ -478,7 +478,7 @@ if has('syntax') let g:python_highlight_all = 1 " Vim. let g:vimsyn_embed = 0 " don't highlight embedded languages - let g:vimsyn_folding = "af" " folding for autogroups (a) and functions (f) + let g:vimsyn_folding = 'af' " folding for autogroups (a) and functions (f) " XML. let g:xml_syntax_folding = 1 endif @@ -520,7 +520,7 @@ if has('autocmd') " Go to last position of opened files. Taken from :help last-position-jump. autocmd BufReadPost * - \ if line("'\"") > 1 && line("'\"") <= line("$") | + \ if line("'\"") > 1 && line("'\"") <= line('$') | \ execute "normal! g'\"" | \ endif " But not for Git commits, go to beginning of the file. @@ -598,7 +598,7 @@ if has('eval') " file it was loaded from, thus the changes you made. Thanks to the " vimrc_example.vim file in Vim's source. Modified to use the same filetype " for the diffed file than the filetype for the original file. - if !exists(":DiffOrig") + if !exists(':DiffOrig') command DiffOrig \ let s:diff_orig_filetype = &filetype \ | vertical new