You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recorded a macro to rewrite a "None," as "[]", but instead, text is being inserted: :call <SNR>50_Python_jump('o', '\v\S.*\n+(def|class)', 'Wb', v:count1, 0)
Here's an example line: self.audio = Stage(name='audio', depnames=None, type='fn')
The macro is 0/Non^Mcf,[] (with ^M being an actual Enter)
When it works:
[Edit] Typing by hand does not result in this behavior (including upon initial macro recording)
If encoding is set to latin8 it doesn't do this behavior
Commenting out this line in python.vim and it also does not do this behavior: execute "onoremap <silent> <buffer> [] :call <SID>Python_jump('o', '". b:prev_endtoplevel."', 'Wb', v:count1, 0)<cr>"
Setting to ft=c doesn't result in this behavior :)
When it still fails:
Using this repo's slightly changed (over Debian stable) python.vim does not correct the behavior
I recorded a macro to rewrite a "None," as "[]", but instead, text is being inserted:
:call <SNR>50_Python_jump('o', '\v\S.*\n+(def|class)', 'Wb', v:count1, 0)
Here's an example line:
self.audio = Stage(name='audio', depnames=None, type='fn')
The macro is
0/Non^Mcf,[]
(with ^M being an actual Enter)When it works:
execute "onoremap <silent> <buffer> [] :call <SID>Python_jump('o', '". b:prev_endtoplevel."', 'Wb', v:count1, 0)<cr>"
When it still fails:
My vim version info:
The text was updated successfully, but these errors were encountered: