Thursday, September 6, 2012

Re: bufexplorer has conflicts with python.vim

On 06/09/12 23:41, Tim Johnson wrote:
> I just installed bufexplorer.vim
> and I am now getting error messages - which I presume are a result
> of some sort of conflict:
> Messages are below
> Error detected while processing /Applications/MacVim-snapshot-62/MacVim.app/Contents/Resources/vim/runtime/ftplugin/python.vim:
> line 21:
> E492: Not an editor command: def\)')<cr>
> line 22:
> E492: Not an editor command: def\)')<cr>
> line 23:
> E492: Not an editor command: def\)')<cr>
> line 24:
> E492: Not an editor command: def\)')<cr>
>
> Comments? Solution? Any and all is welcome. :(
>
> NOTE : Not a problem with any other programming language, like perl or rebol,
> which I also use.
>
> thanks
>

Which Vim version are you using? (I mean, it's MacVim snapshot 62, but
which version does it display on the ":intro" screen? — I'm on Linux)

In the ftplugin/python.vim included in Bram's latest official sources
(ftplugin/python.vim "Last Change: Wed, 21 Apr 2004 13:13:08 CEST",
Mercurial tag v7-3-659 dated Wed Sep 05 19:17:42 2012 +0200), I see two
lines' discrepancy: the closest I come to what could trigger these
messages is at lines 23-26, as follows:

> nnoremap <silent> <buffer> ]] :call <SID>Python_jump('/^\(class\\|def\)')<cr>
> nnoremap <silent> <buffer> [[ :call <SID>Python_jump('?^\(class\\|def\)')<cr>
> nnoremap <silent> <buffer> ]m :call <SID>Python_jump('/^\s*\(class\\|def\)')<cr>
> nnoremap <silent> <buffer> [m :call <SID>Python_jump('?^\s*\(class\\|def\)')<cr>

but in order to trigger those errors, the | immediately before
def\)')<cr> would have to be seen as following an ex-command, not as
part of a single-quoted string.

Does bufexplorer (which is not installed on my system) invoke these four
commands — ]] [[ ]m [m — in the {rhs} of a mapping? Or does it define a
map!, a cmap, an abbrev or a cabbrev with an {lhs} including something
recognizable from the {rhs} of the above mappings?


Best regards,
Tony.
--
"I'd love to go out with you, but I did my own thing and now I've got
to undo it."

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: