summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-01-18 18:19:29 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-01-18 18:19:29 +0000
commite1a5446998de78f7057d1500dd44a62a9b7fd31c (patch)
treefb0ffa48ad10e0b943146958303d726d7245d935
parentBetter ycm/syntastic settings (diff)
downloadutil-e1a5446998de78f7057d1500dd44a62a9b7fd31c.tar.bz2
util-e1a5446998de78f7057d1500dd44a62a9b7fd31c.tar.xz
util-e1a5446998de78f7057d1500dd44a62a9b7fd31c.zip
Plugin header switcher
-rw-r--r--gvimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gvimrc b/gvimrc
index d05eade..cb76be3 100644
--- a/gvimrc
+++ b/gvimrc
@@ -32,8 +32,8 @@ set diffexpr=MyDiff()
map <S-F3> :VCSVimDiff<CR>
au FileType xml,xslt setlocal equalprg=xmllint\ --format\ --recover\ -
au FileType json setlocal equalprg=python\ -m\ json.tool
-au FileType cpp,h map <F4> :e %:p:s,.h$,.X123X,:s,.cpp$,.h,:s,.X123X$,.cpp,<CR>
-au FileType cpp,h map <S-F4> :sp %:p:s,.h$,.X123X,:s,.cpp$,.h,:s,.X123X$,.cpp,<CR>
+au FileType c,cpp,h map <F4> :A<CR>
+au FileType c,cpp,h map <S-F4> :AS<CR>
au FileType c,cpp,jam,h,slice map <F5> :wa<CR>:set makeprg=b2\ -qj3<CR>:mak<CR>
au FileType c,cpp,jam,h,slice map <C-F5> :wa<CR>:set makeprg=b2\ -qj3\ pch=off<CR>:mak<CR>
au FileType c,cpp,jam,h,slice map <S-F5> :wa<CR>:set makeprg=b2\ -qj3\ variant=release<CR>:mak<CR>