Skip to content

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

@JonnyRa

Description

@JonnyRa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions