aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index a1f3fea0..f8f530e8 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -64,7 +64,7 @@ if has("syntax")
set background=dark
silent! colorscheme sahara
if has("folding")
- set fillchars=diff:\ ,fold:\ ,vert:\
+ let &fillchars = 'diff: ,fold: ,vert: '
endif
if exists("&synmaxcol")
set synmaxcol=3000
@@ -105,7 +105,7 @@ nnoremap J mzJ`z
if has("eval")
function! ToggleFormatFlag(flag)
let l:operation = (&formatoptions =~ a:flag) ? '-=' : '+='
- silent! exec 'setlocal formatoptions' l:operation . a:flag
+ silent! exec 'setlocal formatoptions' . l:operation . a:flag
setlocal formatoptions?
endfunction
nnoremap <silent> <leader>a :<C-U>call ToggleFormatFlag('a')<CR>