I very commonly use CTRL-W
to adjust a previous path in the command line, like I'll bring up the directory of the current file or perhaps a previous :e ...
command from history that's close, and use CTRL-W
to remove the filename and maybe a path segment or two before just typing the new suffix.
One of the annoyances of this is that removing, say, the "foo-bar.baz" filename at the end of the path requires hitting CTRL-W
three times, and that particular chord is a little cumbersome.
So I was wondering if I could adjust the word boundaries to include '.' and '-' as word characters, but only in command mode.
q:
?iskeyword
set on an autocmd CommandLineEnter event or whatever it is but haven't gotten that fancy before so thought I'd ask around in case anyone had worked out how to do this.