]> git.mdlowis.com Git - archive/vim_config.git/commitdiff
Moved c-specific abbreviations from vimrc to project configuration
authorMike D. Lowis <mike@mdlowis.com>
Fri, 3 Aug 2012 15:05:13 +0000 (11:05 -0400)
committerMike D. Lowis <mike@mdlowis.com>
Fri, 3 Aug 2012 15:05:13 +0000 (11:05 -0400)
projects/gentex.vim
vimrc

index 78f17df51c79fb8193ff6f05b422a4bca2e7ea6f..cc4b79228d79f8df1ee3ba5831edac064d25b79c 100644 (file)
@@ -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<CR>#endif<up><END>
+abbreviate ifndef #ifndef<CR>#endif<up><END>
+abbreviate prf printf("");<left><left><left>
+
+abbreviate ctest
+    \void test_(void)<CR>
+    \{<CR>
+    \   // Setup<CR>
+    \   // Expected calls<CR>
+    \   // Function to test<CR>
+    \   // Asserts<CR>
+    \}<UP><UP><UP><UP><UP><UP><END><ESC>%i
+
 "------------------------------------------------------------------------------
 " Connect To CTags and CScope
 "------------------------------------------------------------------------------
diff --git a/vimrc b/vimrc
index 6e16b37115874754e3fc6e5c688e212a5c217e5b..76c148283137269bd4072a48ae428001091e1ceb 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -203,22 +203,6 @@ map <F5> <ESC>:e %:p:s,.h$,.X123X,:s,.c$,.h,:s,.X123X$,.c,<CR>
 "==============================================================================
 " Abbreviations
 "==============================================================================
-" Normal mode abbreviations
-abbreviate inc #include
-abbreviate def #define
-abbreviate ifdef #ifdef<CR>#endif<up><END>
-abbreviate ifndef #ifndef<CR>#endif<up><END>
-abbreviate prf printf("");<left><left><left>
-
-abbreviate ctest
-    \void test_(void)<CR>
-    \{<CR>
-    \   // Setup<CR>
-    \   // Expected calls<CR>
-    \   // Function to test<CR>
-    \   // Asserts<CR>
-    \}<UP><UP><UP><UP><UP><UP><END><ESC>%i
-
 " Command mode abbreviations
 cnoreabbrev trim %s/\s\+$//
 cnoreabbrev print hardcopy