aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-05 11:41:25 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-05 11:41:25 +1200
commitba773f84978a3658edc4253b3382819cf1de9a36 (patch)
tree3759a4ac59ef9c591b2f2e24c9982119d1fc9996 /vim/ftplugin
parentPass in mapped key directly, not a flag (diff)
downloaddotfiles-ba773f84978a3658edc4253b3382819cf1de9a36.tar.gz
dotfiles-ba773f84978a3658edc4253b3382819cf1de9a36.zip
Use += shorthand in Vim ftplugin
We're already very dependent on Vim >=7 for this ftplugin, so we may as well use all its syntactic sugar.
Diffstat (limited to 'vim/ftplugin')
-rw-r--r--vim/ftplugin/markdown/autoformat.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/ftplugin/markdown/autoformat.vim b/vim/ftplugin/markdown/autoformat.vim
index a76735d9..f714dad4 100644
--- a/vim/ftplugin/markdown/autoformat.vim
+++ b/vim/ftplugin/markdown/autoformat.vim
@@ -28,7 +28,7 @@ if !exists('*s:Load')
if strlen(l:line) > l:width
\ && stridx(l:line, ' ') > -1
\ && l:line !~# '\m^ '
- let l:count = l:count + 1
+ let l:count += 1
endif
endfor
if l:count * 100 / l:total < 5