guns / vim-clojure-static

Meikel Brandmeyer's excellent Clojure runtime files
Other
420 stars 50 forks source link

In ns requires lowercase word motion should stop at full-stop #76

Closed sitepodmatt closed 8 years ago

sitepodmatt commented 8 years ago

The vim-clojure-static plugin seems to change the default behavior of w stopping at each full-stop e.g. in an ns :require acme.corp.website.framework.validation - pressing w should imho stop at each namespace part. I thought this maybe iskeyword setting but that already seems to include .

guns commented 8 years ago

Yes, it's because . is included in 'iskeywords'. This is necessary for defining symbol boundaries in REPL plugins (e.g. overriding K). A simple workaround is to use f. and F. for navigating namespace parts. You can also simply override this setting by calling setlocal iskeyword-=. in an autocmd.

Thanks for reporting!