2017-04-02 3:17 GMT+03:00 Saurabh T <saurabh@hotmail.com>:
> Hi,
>
>
> While using vim 7.4 on cygwin, I noticed that word characters include a
> period, for example "cw" with cursor on the f of file.html attempts to
> change the entire file.html rather than just file. I have LANG set to C and
> "se encoding" shows latin1, and there's not much in vimrc (identical to the
> one on Linux where this works as expected). What may be the problem here?
$LANG is completely irrelevant, the meaning of word (what is treated
as a word character) is controlled by `&iskeyword` option. What is
worse is that there is a number of syntax and ftplugin files which
think that this is not a user setting, so this option is rather
filetype-specific.
Note that resetting it may break syntax, need to adjust syntax file to
use :syn iskeyword. If this is the case it is a bug. Note: :syn
iskeyword is relatively recent addition (7.4.1142, Jan 2016), you may
get a difference in the behaviour solely because your Vim is very
outdated (7.4 was released in Aug 2013).
Also feel free to file a bug report to ftplugin maintainer if filetype
plugin happens to alter this setting.
Do not forget to update Vim before filing any bug reports.
> Thanks,
>
>
> saurabh
>
> --
> --
> 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Saturday, April 1, 2017
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment