From 9e36bdf1a060a2ffcb0172eb42e954c475ec3f70 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Tue, 20 Nov 2018 23:56:02 +0100 Subject: Improved Tab/Statusline, e.g. fixed spacing also added gh for c files, guess what that does ;) --- after/syntax/c.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'after') diff --git a/after/syntax/c.vim b/after/syntax/c.vim index 0bacea0..cbdd42b 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim @@ -29,6 +29,12 @@ let g:load_doxygen_syntax=1 set formatoptions+=j " Where it makes sense, remove a comment leader when joining lines. set formatoptions+=1 " Don't break a line after a one-letter word. + + +" open a corresponding header file +nnorem gh :execute 'edit '.findfile(substitute(expand('%:t'),'\.[ch]$','.h','')) + + " multiple single line comments in a row " broken! " syn region myCComment start="/\*" end="\*/" fold keepend transparent -- cgit v1.2.3