diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-05 11:41:25 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-05 11:41:25 +1200 |
commit | ba773f84978a3658edc4253b3382819cf1de9a36 (patch) | |
tree | 3759a4ac59ef9c591b2f2e24c9982119d1fc9996 | |
parent | Pass in mapped key directly, not a flag (diff) | |
download | dotfiles-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.
-rw-r--r-- | vim/ftplugin/markdown/autoformat.vim | 2 |
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 |