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)