Include underscore in word
This seems like a trivial question but a lot of searching has not produced an answer. I'm trying to make the change from viper to evil. One thing that surprises me is the underscores are not considered part of a work for various word commands (e.g, w, cw, etc). I tried vim and they are considered part of the word and in viper they are as well. I find the choice in evil strange. Is there a way to make underscores part of words in evil? Thanks, Bob
You can try superword-mode HTH Thomas On Wed, Jul 30, 2014 at 6:46 PM, Bob Nnamtrop <[email protected]> wrote:
This seems like a trivial question but a lot of searching has not produced an answer. I'm trying to make the change from viper to evil. One thing that surprises me is the underscores are not considered part of a work for various word commands (e.g, w, cw, etc). I tried vim and they are considered part of the word and in viper they are as well. I find the choice in evil strange. Is there a way to make underscores part of words in evil?
Thanks, Bob
_______________________________________________ implementations-list mailing list [email protected] https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
Am 30.07.2014 um 18:46 schrieb Bob Nnamtrop:
This seems like a trivial question but a lot of searching has not produced an answer. I'm trying to make the change from viper to evil. One thing that surprises me is the underscores are not considered part of a work for various word commands (e.g, w, cw, etc). I tried vim and they are considered part of the word and in viper they are as well. I find the choice in evil strange. Is there a way to make underscores part of words in evil?
See the FAQ at https://bitbucket.org/lyro/evil/wiki/Home (near the bottom of the page). Frank
Thanks for the link to the FAQ, I had not stumbled upon that. It sounds like the superword-mode (coming in 24.4 and mentioned by Thomas above) will change the definition of a word throughout emacs and make it easy to change the default everywhere, perhaps even for regular expression character class [:word:] (as mentioned in the FAQ)? It may make sense to change the evil default at that point. Bob On Wed, Jul 30, 2014 at 11:32 AM, Frank Fischer < [email protected]> wrote:
Am 30.07.2014 um 18:46 schrieb Bob Nnamtrop:
This seems like a trivial question but a lot of searching has not produced an answer. I'm trying to make the change from viper to evil. One thing that surprises me is the underscores are not considered part of a work for various word commands (e.g, w, cw, etc). I tried vim and they are considered part of the word and in viper they are as well. I find the choice in evil strange. Is there a way to make underscores part of words in evil?
See the FAQ at
https://bitbucket.org/lyro/evil/wiki/Home
(near the bottom of the page).
Frank
_______________________________________________ implementations-list mailing list [email protected] https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
participants (3)
-
Bob Nnamtrop -
Frank Fischer -
Thomas Hisch