GithubHelp home page GithubHelp logo

svermeulen / vim-you-keep-using-that-word Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ap/vim-you-keep-using-that-word

0.0 4.0 0.0 90 KB

Make cw consistent with dw, yw, et al

License: MIT License

Vim Script 100.00%

vim-you-keep-using-that-word's Introduction

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<Space> 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.

vim-you-keep-using-that-word's People

Contributors

ap avatar joshtch avatar svermeulen avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.