Wikia

Vim Tips Wiki

Changes: Script:1905

Edit

Back to page

(adjust Template:ScriptComments to remove id as no longer needed; minor tweaks)
(Is this a bug or configurable behaviour?: Answer issue.)
 
(One intermediate revision by one user not shown)
Line 6: Line 6:
 
For such a files it would be great for camelCaseMotion to be able to move through parts of a word separated by dashes also. In other words, if dash is a keyword, it would be useful if the script could treat dashes inside of words the same way as it currently treats underscores.
 
For such a files it would be great for camelCaseMotion to be able to move through parts of a word separated by dashes also. In other words, if dash is a keyword, it would be useful if the script could treat dashes inside of words the same way as it currently treats underscores.
 
:Great suggestion! I will check whether it's possible to make the separator characters configurable, so that different / additional ones can be chosen. -- [[User:Inkarkat|Inkarkat]] 14:31, November 14, 2010 (UTC)
 
:Great suggestion! I will check whether it's possible to make the separator characters configurable, so that different / additional ones can be chosen. -- [[User:Inkarkat|Inkarkat]] 14:31, November 14, 2010 (UTC)
  +
  +
==Is this a bug or configurable behaviour?==
  +
I love the plugin, but find that, for example, changing a word in underscore_notation also changes the trailing underscore.
  +
  +
Is there a way to not include that in the word that is being changed? I hope this is clear...
  +
  +
:: That's the difference between <tt>c,w</tt> and <tt>c,e</tt>. -- [[User:Inkarkat|Inkarkat]] ([[User talk:Inkarkat|talk]]) 11:23, June 27, 2013 (UTC)

Latest revision as of 11:23, June 27, 2013

Use this page to discuss script 1905 camelcasemotion: motion through CamelCaseWords and underscore_notation

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

CommentsEdit

Great script. But IMO it lacks one feature: for some file types dash character is considered a keyword (see :h iskeyword), which makes it a part of a word (just like underscore). But the script acts as if dashes were a regular letter characters in such cases. It doesn't stop on dashes when `,w`, `,e` or `,b` motions are used.

For such a files it would be great for camelCaseMotion to be able to move through parts of a word separated by dashes also. In other words, if dash is a keyword, it would be useful if the script could treat dashes inside of words the same way as it currently treats underscores.

Great suggestion! I will check whether it's possible to make the separator characters configurable, so that different / additional ones can be chosen. -- Inkarkat 14:31, November 14, 2010 (UTC)

Is this a bug or configurable behaviour?Edit

I love the plugin, but find that, for example, changing a word in underscore_notation also changes the trailing underscore.

Is there a way to not include that in the word that is being changed? I hope this is clear...

That's the difference between c,w and c,e. -- Inkarkat (talk) 11:23, June 27, 2013 (UTC)

Around Wikia's network

Random Wiki