rodjek / vim-puppet

Puppet niceties for your Vim setup
Apache License 2.0
500 stars 137 forks source link

The colon character should not be a keyword #108

Closed SamK closed 2 years ago

SamK commented 5 years ago

Hi Tim, Hi all,

The colon : character should not be a keyword.

I tend to like having organized folders and it annoys me a lot when the colon character is considered as a word, it makes annoying to navigate inside class names, especially when refactoring or copy/pasting parts of it.

I can provide a PR if you want.

lelutin commented 3 years ago

here's another reason not to include the colon in iskeyword. with the follwing:

file { $variable:
  ensure => present,
  [...]

place the cursor on variable and hit # to search for other occurences of the variable. It'll actually search for variable: and might not find anything.

lcrownover commented 3 years ago

I'd like to third this request. Navigating/modifying class names is a pain.

This entire classname is one word motion:

my_class::client::linux::redhat_extras

I can live with underscores being part of the word (although it'd be cool to have an option to include those as keywords), but the colon is a big pain point.