On Tue, 24 May 2011 17:07:57 -0700
"George V. Reilly" <[email protected]> wrote:
> If I go to the beginning of a line such as this:
>
> build_number=${build_number:-37} #### for standalone testing
>
> and type 'ye', it yanks everything up to the '}'. With the stock
> syntax highlighting, it just yanks 'build_number'
This is probably because I have set the 'iskeyword' option to what the
shell actually recognises as a word character - only whitespace and
special shell characters |&;<>() break words in shell scripts.
It's quite important to get this right - otherwise Vim would
misinterpret stuff, e.g. take "if[" as "if" compound followed by "["
test, while in fact it's just a single (valid!) command name.
In theory, it could be fixed by replacing every "\<" and "\>" in
patterns by equivalent that doesn't depend on 'iskeyword' value, but
that would be neither pretty nor maintainable. Is anyone aware of other
possible solutions?
--
You received this message from the "vim_dev" 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