I want Vim to treat the following as separate words:


What is the best solution for this? As I understand

set iskeyword=@,48-57,_,192-255,-,#,.,?

Coupled with camelcasemotion should do the trick.

  • iskeyword=@,48-57,_,192-255,-,#,. Last set from ~/dotfiles/vim/plugged/vim-coloresque/after/syntax/css/vim-coloresque.vim – firedev Mar 15 '15 at 6:02
  • You know what, it is working in a new text file. Just not in the .html.slim template – firedev Mar 15 '15 at 6:04
  • Yep, that was right from .html.slim. Here is the output from a new file: iskeyword=@,48-57,_,192-255 Last set from ~/.vimrc – firedev Mar 15 '15 at 6:07
  • Here it is in vim-coloresque: github.com/gorodinskiy/vim-coloresque/blob/master/after/syntax/… – firedev Mar 15 '15 at 6:09

Right now I am using camelcasemotion plugin with the following mappings:

Plugin 'vim-scripts/camelcasemotion'
map w <Plug>CamelCaseMotion_w
map b <Plug>CamelCaseMotion_b
map e <Plug>CamelCaseMotion_e
sunmap w
sunmap b
sunmap e
nmap cw ce
omap iw ie
xmap iw ie
omap iw <Plug>CamelCaseMotion_iw
xmap iw <Plug>CamelCaseMotion_iw
omap ib <Plug>CamelCaseMotion_ib
xmap ib <Plug>CamelCaseMotion_ib
omap ie <Plug>CamelCaseMotion_ie
xmap ie <Plug>CamelCaseMotion_ie
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.