From 56ecdc03efcf665e164761695fc37752312d313e Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Tue, 1 Dec 2020 09:23:27 +0100 Subject: [PATCH 1/1] init: Move includeguards from keymap --- init.vim | 1 + keymaps.vim | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/init.vim b/init.vim index 21e8f9a..08935f1 100644 --- a/init.vim +++ b/init.vim @@ -167,6 +167,7 @@ au BufEnter *.h* let b:fswitchlocs='reg:/include/lib/,rel:.' au BufEnter *.cpp,*.cc,*.cxx let b:fswitchdst='h,hxx,hpp,hh' au BufEnter *.h,*.hh,*.hxx let b:fswitchdst='cc,c,cxx,cpp' +au BufNewFile *.{h,hpp,hxx} call AddIncludeGuards() """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Some plugin-specific settings diff --git a/keymaps.vim b/keymaps.vim index 1ad0f13..8d7e549 100644 --- a/keymaps.vim +++ b/keymaps.vim @@ -19,7 +19,6 @@ xmap (neosnippet_expand_target) au Filetype c,cpp,objc map :vsplit:FSRight au Filetype c,cpp,objc map :FSHere -au BufNewFile *.{h,hpp,hxx} call AddIncludeGuards() au Filetype markdown map :call RunMarkdown() -- 2.30.2