Monday, February 3, 2020

Re: viw / how to select a one char word ?

On Mon, Feb 3, 2020 at 12:17 PM M Kelly <mckelly2833@gmail.com> wrote:
>
> Hi,
>
> Is there a way to select a one char word ?
> lbve or viw or ? All my attempts seem to continue on to the beginning (or end) of the next word.
> Is it that a 'word' cannot be a single char ?
>
> thx for everything vim,
> -m

When I do viw with the cursor on a one-letter word, that one-letter
word becomes visually selected. What is 'selection' set to? (":verbose
set sel?" will tell you the value and — if other than by default or
from the keyboard — where it was set.)

My vimrc includes the following, BTW:
" :behave tonymec
if exists('+selectmode')
set slm=mouse,key
endif
if exists('+mousemodel')
set mousemodel=popup
endif
if exists('+keymodel')
set keymodel=startsel
endif
if exists('+selection')
set selection=inclusive
endif

Best regards,
Tony.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXtR31gAn1ohJ2QwZ6uzwFkmjZGrFp%2B1qiuVe8RVFTceyw%40mail.gmail.com.

No comments: