haskell-vim icon indicating copy to clipboard operation
haskell-vim copied to clipboard

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

Open JonnyRa opened this issue 7 years ago • 1 comments

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

JonnyRa avatar Nov 28 '17 10:11 JonnyRa

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.

raichoo avatar Dec 03 '17 19:12 raichoo