From ba84328b3c4fef1838e741cf6d31e48de0769d79 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 25 Nov 2015 04:49:52 +0100 Subject: Add nvim settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- nvim/after/syntax/c.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 nvim/after/syntax/c.vim (limited to 'nvim/after/syntax/c.vim') diff --git a/nvim/after/syntax/c.vim b/nvim/after/syntax/c.vim new file mode 100644 index 0000000..0f796e3 --- /dev/null +++ b/nvim/after/syntax/c.vim @@ -0,0 +1,13 @@ +" Highlight Class and Function names +syn match cCustomParen "(" contains=cParen +syn match cCustomFunc "\w\+\s*(" contains=cCustomParen + +hi def link cCustomFunc Function +hi def cCustomFunc gui=bold guifg=yellowgreen + +highlight ExtraWhitespace ctermbg=red guibg=red +match ExtraWhitespace /\s\+$/ +autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ +autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@ Date: Wed, 25 Nov 2015 05:14:06 +0100 Subject: nvim/after/syntax/c: Drop unnecesary lines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- nvim/after/syntax/c.vim | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'nvim/after/syntax/c.vim') diff --git a/nvim/after/syntax/c.vim b/nvim/after/syntax/c.vim index 0f796e3..e9a795c 100644 --- a/nvim/after/syntax/c.vim +++ b/nvim/after/syntax/c.vim @@ -1,13 +1,5 @@ -" Highlight Class and Function names +" Highlight Function names syn match cCustomParen "(" contains=cParen syn match cCustomFunc "\w\+\s*(" contains=cCustomParen hi def link cCustomFunc Function -hi def cCustomFunc gui=bold guifg=yellowgreen - -highlight ExtraWhitespace ctermbg=red guibg=red -match ExtraWhitespace /\s\+$/ -autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ -autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@