Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ap/vim-you-keep-using-that-word
Make cw consistent with dw, yw, et al
https://github.com/ap/vim-you-keep-using-that-word
vim-script
Last synced: 10 days ago
JSON representation
Make cw consistent with dw, yw, et al
- Host: GitHub
- URL: https://github.com/ap/vim-you-keep-using-that-word
- Owner: ap
- License: mit
- Created: 2014-05-31T02:15:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-13T01:08:29.000Z (almost 8 years ago)
- Last Synced: 2024-11-06T03:03:55.483Z (about 2 months ago)
- Topics: vim-script
- Language: Vim script
- Homepage:
- Size: 3.91 KB
- Stars: 19
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
You Keep Using That Word
========================A tiny little plugin for Vim
When using word motion with the `c` command, it does not mean what Vim normally
thinks it means. As the documentation says:> Special case: When the cursor is in a word, `cw` and `cW` do not include the
> white space after a word, they only change up to the end of the word. This is
> because Vim interprets `cw` as change-word, and a word does not include the
> following white space.But you can already do the same yourself by using `ce` and `cE`, whereas this
supposedly helpful exception leaves you using workarounds such as `cf`
in order to do what you normally would use `cw` or `cW` for.This plugin removes the special exception from `cw`/`cW`. It does nothing else,
and it has no configuration options.Credits
-------Thanks to Josh Howe (@joshtch) for pointing out my omission of the WORD motion
in the initial release of this plugin.