aboutsummaryrefslogtreecommitdiff
path: root/after
diff options
context:
space:
mode:
Diffstat (limited to 'after')
-rw-r--r--after/syntax/c.vim10
l---------after/syntax/cpp.vim1
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 @@
1set number 1setlocal number
2set foldenable 2setlocal foldenable
3set foldmethod=syntax 3setlocal foldmethod=expr
4setlocal foldcolumn=0
5
6" setlocal foldexpr=get(synstack(v:lnum,1),0)==hlID('cComment')
7setlocal 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
..