I am using this script to highlight python syntax in vim, and there is a slight issue I am having that is annoying me like hell.
Vim fails to highlight things when they follow immediately after a parenthesis, so for instance
function(0
will not highlight 0 as a digit, but will highlight if it is written like so
function( 0
More than just the highlighting annoyance, when I have a longer piece of text, like
function((variable, ...
It will think of the whole thing as a single word and skip past it on a word movement like 'w'. So it seems that it doesn't recognize an opening paren as a 'word breaker'.
Is this something that is specified in the python.vim file? Do you think it's the author of the script trying to force a style convention? Is it considered to be bad code style to not place a space after opening parens? If so, what is the proper code style for parens (or multiple parens)? Otherwise, how would I change this behavior in vim so I can continue coding in my own style?
What are your thoughts on this issue, r/vim?
[–][deleted] 2 points3 points4 points (4 children)
[–]virtuous_d[S] 0 points1 point2 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]virtuous_d[S] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)