-
Notifications
You must be signed in to change notification settings - Fork 281
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
evil-forward-word-begin doesn't work with superword-mode #721
Comments
I am experiencing this issue as well. If it helps, I found that disabling superword-mode and using this workaround helps: https://emacs.stackexchange.com/a/27350/2676 ;; For python
(add-hook 'python-mode-hook #'(lambda () (modify-syntax-entry ?_ "w")))
;; For ruby
(add-hook 'ruby-mode-hook #'(lambda () (modify-syntax-entry ?_ "w")))
;; For Javascript
(add-hook 'js2-mode-hook #'(lambda () (modify-syntax-entry ?_ "w"))) which allows evil-mode to consider |
That workaround actually does not work. If a line contains "_" near its end (in combination with a handful of other symbols or by itself), the cursor will still get stuck there. |
Hi, has there been any progress on this issue? It is also affecting me. |
Since superword-mode makes forward-word behave like forward-symbol, it seems reasonable to make forward-evil-word behave like forward-evil-symbol when superword-mode is on. Fix emacs-evil#721 Fix emacs-evil#728 Fix emacs-evil#1492
Since superword-mode makes forward-word behave like forward-symbol, it seems reasonable to make forward-evil-word behave like forward-evil-symbol when superword-mode is on. Fix emacs-evil#721 Fix emacs-evil#728 Fix emacs-evil#1492
Originally reported by: arianaut (Bitbucket: arianaut, GitHub: Unknown)
superword-mode, which ships with Emacs, changes symbol characters like underscore into word characters (so forward-word, backward-word skip over them).
However, evil-forward-word-begin behaves erratically on words containing underscores when superword-mode is enabled.
The text was updated successfully, but these errors were encountered: