Dear Vimers, thank you for your help. After doing some search and experimenting, I finally found out, how to configure Vim so that it starts select-mode on using <S-Arrow> in normal mode.
Put in .vimrc set selectmode=key set keymodel=startsel I do not understand, why the arguments have to be passed without the "-char surrounding them, though Vim-Documentation states selectmode and keymodel are comma separated lists of strings. Also putting set selectmode = key set keymodel = startsel in my .vimrc (Note the whitespaces surrounding the equality-signs.), yields an error, when starting vim: " Error detected while processing .vimrc: line 28: E518: Unknown option: startsel key= key= key= key= " Anyway. It works now. Maybe someone can profit from this.. Have a nice weekend everyone! Asis ---------- Forwarded message ---------- From: Asis Hallab <[email protected]> Date: 2011/7/16 Subject: Re: How to set selectmode? To: [email protected] Dear Vimers, according to the kind hints of Tim Chase and Zyx, I tried the following in my .vimrc: set selectmode += "key" set keymodel += "startsel" 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. I use the latest MacVim on Mac OS Leopard. Help will be much appreciated! Kind regards! Asis 2011/7/16 Tim Chase <[email protected]>: > On 07/16/2011 04:57 AM, Asis Hallab wrote: >> >> In my .vimrc I am trying to set the selectmode option to "key", >> so I can use the Shift-Key with movement-keys to start the Select-Mode. >> >> Unfortunately I seam to be unable to get it right: >> >> Neither >> set selectmode = ['key'] >> nor >> set selectmode = ["key"] >> nor >> set selectmode = "key" >> work. > > Have you tried just using > > :set selectmode=key > > or > > :set selectmode+=key > > (depending on whether you want to set or add to existing values) > > -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
