-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
word motion ignores '.' and '-' #547
Comments
I've been noticing this for a few days now, it's driving my nuts. Can't think of what would be causing it though. |
This seems to be file dependent. My Coffeescript files are not having this problem. JS and Ruby files have the problem though. Edit: Removing the 'ruby' group fixes this so it is one of the bundles in that group. Trying to narrow it down. |
I sometimes see this problem in C files
|
Removing 'tpope/vim-rails' fixes it. Not sure why though I suppose it could be a problem with vim-rails. |
Ideally this would happen (* is the cursor):
Instead of this when vim-rails is loaded:
or this (treats '.' as an entire word rather than part of one) when it isn't
|
Ok it isn't related to vim-rails. The problem doesn't occur on immediately starting Vim if I don't load vim-rails but it does eventually start to happen. |
Ok this time I'm pretty sure I narrowed it down properly to |
https://github.com/gorodinskiy/vim-coloresque/blob/master/after/syntax/css/vim-coloresque.vim the problem is at lines 125-126
|
I mean that is what is causing the trouble, but it should be fine for css files. Please check why this plugin is sourcing for js files. |
Probably because JS files can also use color strings say when setting the style attribute. Ruby files same thing as @tpope pointed out, rails.vim does HTML parsing in %Q<> strings. Personally I don't need this functionality so I'm happy with simply not using it. |
Same problem here in PHP files 🐙 |
This is hugely annoying. I think coloresque should come out until it can behave, if ever. |
@spf13 I don't think 21ff737 fully solves the problem, because vim-coloresque seems to clobber the fix with a The only thing that's worked for me is uninstalling coloresque. |
Yes the only thing that fix will accomplish is break the current syntax highlighting if anyone reloads the vimrc. Note that rails.vim gave up its HTML highlighting so it should no longer have an effect on its results. But Ruby files may still be affected because the plugin in question is so broken as to clobber not just the buffer local but also the global value of the option. This was explained to the author but not yet heeded. (Perhaps someone should try a pull request?) |
doh. Thanks @tpope! & @adambiggs he's already sitting on a pull request to fix it. https://github.com/hauleth/vim-coloresque/commit/9d8fdd25f3b161e27331c1e5e5ba04d9d169e139 We should probably just remove it...or fork it and fix it.. .any volunteers?. |
Note that's a partial fix; it'll still break HTML and anything that builds on it like PHP. |
* upstream/3.0: (22 commits) Bugfix spf13#320. vimdiff "]c" jump to next diff doesn\'t work spf13#320. Thanks the help from @keelerm84 and @pwolfram Improve the readme to show an option to configure the environment variables because they are not set by default with gVim. improve rust and puppet support Removing csapprox ... and there was rejoicing in the terminals Adding tpope/commentary Adding Toml support Improve the readme showing an option to configure the enviroment variables because they are not set by default by gVim. Remove twig from default bundles. Move beyondwords/vim-twig into PHP bundle. Don't conceal JSON syntax Don't remap <CR> for omnicomplete it causes issues Closing spf13#500. xptemplate support for scala. fixed spf13#547. Better end of word handling. Better handling of neocomplete closing. Some improvements to clipboard support Adding wildfire support.. Hit return to use it. Add tpope/vim-repeat to default install Fixed spf13#617. period is now an end of word designator fixed spf13#474 . Smaller default font on gvim remove spf13-vim 3.0 note ...
* spf13-merge: (23 commits) Merge with latest spf13 Bugfix spf13#320. vimdiff "]c" jump to next diff doesn\'t work spf13#320. Thanks the help from @keelerm84 and @pwolfram Improve the readme to show an option to configure the environment variables because they are not set by default with gVim. improve rust and puppet support Removing csapprox ... and there was rejoicing in the terminals Adding tpope/commentary Adding Toml support Improve the readme showing an option to configure the enviroment variables because they are not set by default by gVim. Remove twig from default bundles. Move beyondwords/vim-twig into PHP bundle. Don't conceal JSON syntax Don't remap <CR> for omnicomplete it causes issues Closing spf13#500. xptemplate support for scala. fixed spf13#547. Better end of word handling. Better handling of neocomplete closing. Some improvements to clipboard support Adding wildfire support.. Hit return to use it. Add tpope/vim-repeat to default install Fixed spf13#617. period is now an end of word designator fixed spf13#474 . Smaller default font on gvim ...
Experiencing the same problem in PHP, even after removing vim-coloresque and vim-rails |
Putting this in my
, sourcing the file, and running :PluginClean |
Actually, some file related options are still kept in |
I did Nov 13, 2014 and deleted all files in ~/.vimviews. Kind regards, Ton Akveld |
You can use |
Thanks YuMS. Help and advice are highly appreciated! Kind regards, Ton Akveld |
|
That finally worked! |
@absynton Would mind sharing some details? |
How to disable the behavior where word motions ignore dots and hyphens?
Consider the following:
The word motion includes
.js
as well as.on
which is undesirable. For example hit*
overmyVariable
and will look formyVariable.on
The text was updated successfully, but these errors were encountered: