emacs-evil / emacs-evil/evil

Word commands do not respect word boundaries of the current syntax table

Open
#565 9 comments 0 reactions 0 assignees View on GitHub
bug major
Dominant language
Emacs Lisp
Stars
3.9k
Forks
307
PR merge metrics
No merged PRs in 30d

Description

Originally reported by: **Mika Vilpas (Bitbucket: [sp3ctum](https://bitbucket.org/sp3ctum), GitHub: [sp3ctum](https://github.com/sp3ctum))**

----------------------------------------

Commands operating on words, such as `w` and `*`, don't seem to respect the syntax table of the current mode for me. In this isssue it is described to alter the syntax table to include, for example, dashes (-) as being part of a word: https://bitbucket.org/lyro/evil/issues/222/w-command-is-not-compatibile-with-vims

I have this in my config:

```
;; http://timothypratley.blogspot.fi/2014/08/clojure-friendly-word-definitions-in.html
;; Treat these characters as word characters. Works great with evil-mode!
(dolist (c (string-to-list ":_-?!#*"))
(modify-syntax-entry c "w" clojure-mode-syntax-table)
(modify-syntax-entry c "w" emacs-lisp-mode-syntax-table))
```

This used to work in evil-20141003.1015, but now I've upgraded to evil-20150818.1313 and the functionality is broken for me. Is there a way to work around this? Have I misconfigured somehow?

----------------------------------------
- Bitbucket: https://bitbucket.org/lyro/evil/issue/565

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.