Reputation: 31256
I use vim. On every machine I have ever used it on, 'w' respects punctuation. If I press 'w', I will advance to the end of a word.
In the case of a period delimited word, I will move to the next period.
However, in a particular install of vim, 'w' is interpreted as 'W' and skips past all special characters.
At first I thought I would just adapt, but it has become frustrating. How do I return this behavior to normal?
Upvotes: 2
Views: 202
Reputation: 172688
What w
skips over is controlled by :help 'iskeyword'
. Now if Vim suddenly skips past periods, that means that the period (.
, or numerical 46
) got added to that option.
You can find out where this was done via
:verbose setlocal iskeyword?
And (for the current session) undo with
:setlocal isk-=. isk-=46
Usually, a filetype plugin changes this for a particular type of file.
Upvotes: 5
Reputation: 488
Try remapping this. Go to your ~/.vimrc and add this and save:
nnoremap w w
Upvotes: 2