[reordering to trimmed inline quoting rather than top-quoting. Please do likewise and observe the list guidelines as detailed at the bottom of every list-post]

On 07/16/2011 06:22 AM, Asis Hallab wrote:
Have you tried just using

  :set selectmode=key

or

  :set selectmode+=key

according to the kind hints of Tim Chase and Zyx,
I tried the following in my .vimrc:

set selectmode += "key"
set keymodel += "startsel"

I'm not sure why you think that the values should be in quotes or with spaces around the assignment, both of which render the command ineffective. I advised you ry

  :set selectmode+=key

not

  :set selectmode += "key"
                 ^  ^^   ^
Still pressing<S-Left>  in normal mode does not start
select-mode. Though, when I start select-mode with gh, I can
extend the selection using <S-Left>

Does anyone know how to configure vim, so I can start
select-mode by hitting e.g.<S-Left>  in normal mode? -
Unfortunately the given hints did not solve my problem.

When I set them as shown at ":help :set" with

  :set selectmode+=key keymodel+=startsel

(no quotes, and only 2 spaces: one after "set" and one separating the options) then using <S-Left> works in terminals that send such a sequence. This is presuming there's not some build-option that snips out SELECT mode, though I neither spotted one in ":help select-mode" nor anything indicating such a build-option in the output of ":ver". The leading ":" allows you to test it in a vim session; it can be omitted when putting the line in your vimrc file.

-tim


--
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

Reply via email to