From: Stefan Huber Date: Tue, 1 Dec 2020 08:23:27 +0000 (+0100) Subject: init: Move includeguards from keymap X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=commitdiff_plain;h=56ecdc03efcf665e164761695fc37752312d313e init: Move includeguards from keymap --- 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()