Skip to content
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

In cabal files moving using 'w' skips over '.' #101

Open
JonnyRa opened this issue Nov 28, 2017 · 1 comment
Open

In cabal files moving using 'w' skips over '.' #101

JonnyRa opened this issue Nov 28, 2017 · 1 comment

Comments

@JonnyRa
Copy link

JonnyRa commented Nov 28, 2017

This makes it hard to edit module namespaces.

To move through Cow.Horse.Sheep
I have to use f. and then to say change Horse to Donkey I have to do ct. this is inconvenient as it basically puts cabal files in a different editing mode from every other kind of file.

I read https://superuser.com/questions/741422/vim-move-word-skips-dot

and then ran :verbose set iskeyword? in the cabal file

gives (notice the '.' in there):

 iskeyword=@,48-57,_,192-255,-,.,*
        Last set from ~/.vim/plugged/haskell-vim/after/ftplugin/cabal.vim

Is there any reason you are doing that?

Could you change it?

I think I can probably remove the '.' using an autocmd on filetype but was wondering if that has any other consequences?

Cheers

Jonny

@raichoo
Copy link
Member

raichoo commented Dec 3, 2017

Yep it's a bit distracting but I've did that for a reason (can't recall what exactly it was though). I should improve the cabal portion of the plugin at some point. It's still very hacky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants