From df4499f7ffa2581db9632be5e56b4f5455743233 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sun, 29 Dec 2013 11:38:13 +0800 Subject: [PATCH] Give user a chance to set if use map in insert mode --- plugin/a.vim | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugin/a.vim b/plugin/a.vim index 637feb5..5a26b5d 100644 --- a/plugin/a.vim +++ b/plugin/a.vim @@ -557,11 +557,14 @@ comm! -nargs=? -bang IHS call AlternateOpenFileUnderCursor("h", ) comm! -nargs=? -bang IHV call AlternateOpenFileUnderCursor("v", ) comm! -nargs=? -bang IHT call AlternateOpenFileUnderCursor("t", ) comm! -nargs=? -bang IHN call AlternateOpenNextFile("") -imap ih :IHS +if exists('g:InsertModeAlternateHeader') && (g:InsertModeAlternateHeader==1) + imap ih :IHS + imap is :IHS:A + imap ihn :IHN +endif + nmap ih :IHS -imap is :IHS:A nmap is :IHS:A -imap ihn :IHN nmap ihn :IHN "function! PrintList(theList)