Re: [Vim-latex-devel] Invalid arguments for function substitute, etc
Brought to you by:
srinathava,
tmaas
From: Gregor B. <gre...@gm...> - 2006-02-01 09:42:47
|
> Interesting... Can you do a quick check... Run the command > > :echo substitute("12a\nb\<CR>c d", '\([^[:alnum:]]\)', > '\=3D"_".char2nr(submatch(1))."_"', 'g') > > and see if you get any errors. You should get the string: > > 12a_10_b_13_c_32_d I get this string. I looked in the IMAP function and found out what the problem is. In file plugin/imaps.vim, line 181 you start a command: =09exe 'inoremap <silent>' =09=09=09=09\ escape(lastLHSChar, '|') =09=09=09=09\ '<C-r>=3D<SID>LookupCharacter("' . =09=09=09=09\ escape(lastLHSChar, '\|"') . =09=09=09=09\ '")<CR>' The problem is that my vim does not "understand" this as one command. If I join this lines and remove back-slashes, the IMAP executes correctly. I also get all the menus in gvim. The only problem is that many other files contain such commands. Do you have any idea why multi-line commands causes problems to my vim? Gregor > If this is not causing errors, it might be some tricky i18n issue... > If this is causing errors, it might be that vim is not compiled with > expression support or something similar. |