diff options
author | Max Christian Pohle | 2018-11-12 01:10:33 +0100 |
---|---|---|
committer | Max Christian Pohle | 2018-11-12 01:10:33 +0100 |
commit | a693df562838c3f93fcb6055359091aab834c8e2 (patch) | |
tree | f31e5dec17312ae4ad88c98e4aa77e2a5692b5a2 /after/syntax | |
parent | 40eca42048f85d361d01842488e1ee62a1adda23 (diff) | |
download | vim-a693df562838c3f93fcb6055359091aab834c8e2.tar.bz2 vim-a693df562838c3f93fcb6055359091aab834c8e2.zip |
Found and added formatoptions :)
Diffstat (limited to 'after/syntax')
-rw-r--r-- | after/syntax/c.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/after/syntax/c.vim b/after/syntax/c.vim index 301cd90..0bacea0 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim | |||
@@ -25,6 +25,10 @@ syn region cBlock start=/{/ end=/}/ transparent | |||
25 | " configure c.vim so that it automatically allows doxygen like comments | 25 | " configure c.vim so that it automatically allows doxygen like comments |
26 | let g:load_doxygen_syntax=1 | 26 | let g:load_doxygen_syntax=1 |
27 | 27 | ||
28 | |||
29 | set formatoptions+=j " Where it makes sense, remove a comment leader when joining lines. | ||
30 | set formatoptions+=1 " Don't break a line after a one-letter word. | ||
31 | |||
28 | " multiple single line comments in a row " broken! | 32 | " multiple single line comments in a row " broken! |
29 | " syn region myCComment start="/\*" end="\*/" fold keepend transparent | 33 | " syn region myCComment start="/\*" end="\*/" fold keepend transparent |
30 | 34 | ||