From 335ab186f14c606a76cd4510b635f06984a07a53 Mon Sep 17 00:00:00 2001 From: "Mike D. Lowis" Date: Fri, 3 Aug 2012 11:05:13 -0400 Subject: [PATCH] Moved c-specific abbreviations from vimrc to project configuration --- projects/gentex.vim | 19 +++++++++++++++++++ vimrc | 16 ---------------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/projects/gentex.vim b/projects/gentex.vim index 78f17df..cc4b792 100644 --- a/projects/gentex.vim +++ b/projects/gentex.vim @@ -108,6 +108,25 @@ if( (&ft == "c") || (&ft == "cpp") ) setlocal cino={1s=1s:1s(1s endif +"============================================================================== +" Abbreviations +"============================================================================== +" Normal mode abbreviations +abbreviate inc #include +abbreviate def #define +abbreviate ifdef #ifdef#endif +abbreviate ifndef #ifndef#endif +abbreviate prf printf(""); + +abbreviate ctest + \void test_(void) + \{ + \ // Setup + \ // Expected calls + \ // Function to test + \ // Asserts + \}%i + "------------------------------------------------------------------------------ " Connect To CTags and CScope "------------------------------------------------------------------------------ diff --git a/vimrc b/vimrc index 6e16b37..76c1482 100644 --- a/vimrc +++ b/vimrc @@ -203,22 +203,6 @@ map :e %:p:s,.h$,.X123X,:s,.c$,.h,:s,.X123X$,.c, "============================================================================== " Abbreviations "============================================================================== -" Normal mode abbreviations -abbreviate inc #include -abbreviate def #define -abbreviate ifdef #ifdef#endif -abbreviate ifndef #ifndef#endif -abbreviate prf printf(""); - -abbreviate ctest - \void test_(void) - \{ - \ // Setup - \ // Expected calls - \ // Function to test - \ // Asserts - \}%i - " Command mode abbreviations cnoreabbrev trim %s/\s\+$// cnoreabbrev print hardcopy -- 2.54.0