diff options
Diffstat (limited to 'after/syntax')
-rw-r--r-- | after/syntax/c.vim | 10 | ||||
l--------- | after/syntax/cpp.vim | 1 |
2 files changed, 8 insertions, 3 deletions
diff --git a/after/syntax/c.vim b/after/syntax/c.vim index f4b1de9..49e96f0 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim | |||
@@ -1,6 +1,10 @@ | |||
1 | set number | 1 | setlocal number |
2 | set foldenable | 2 | setlocal foldenable |
3 | set foldmethod=syntax | 3 | setlocal foldmethod=expr |
4 | setlocal foldcolumn=0 | ||
5 | |||
6 | " setlocal foldexpr=get(synstack(v:lnum,1),0)==hlID('cComment') | ||
7 | setlocal foldexpr=index([0,hlID('cComment'),hlID('Comment')],get(synstack(v:lnum,1),0)) | ||
4 | 8 | ||
5 | " syntax match cType "struct\s+[A-Za-z0-9_]+\>" | 9 | " syntax match cType "struct\s+[A-Za-z0-9_]+\>" |
6 | " syn clear cStructure | 10 | " syn clear cStructure |
diff --git a/after/syntax/cpp.vim b/after/syntax/cpp.vim new file mode 120000 index 0000000..64e3fd4 --- /dev/null +++ b/after/syntax/cpp.vim | |||
@@ -0,0 +1 @@ | |||
c.vim \ No newline at end of file | |||