[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim
Subject:    Re: Switching between windows using shift AND SELECT-MODE  (Was:
From:       "A. J. Mechelynck" <antoine.mechelynck () skynet ! be>
Date:       2005-09-30 11:08:05
Message-ID: 433D1C95.1060401 () skynet ! be
[Download RAW message or body]

Eric Leenman wrote:
> Fritz,
> 
> I was wundering, seeing that you used the shift to move between windows,
> did you also remap the SELECT-MODE?
> AFAIK this isn't possible, but I'm not a VIM expert.
> Or don't you use/need SELECT-MODE?
> 
> IIUC <shift-left> or <shift-right> in normal and insert mode is the
> default for SELECT-MODE.
> (In insert mode its even (insert)- SELECT , but I don't know the
> difference)
> 
> Best Regards
> 
> Eric
> 
> [...snipped...]
> 
> gVim only: I have the following lines in my  .gvimrc file.
> So I can use   <Shift><arrow> to change the windows.
> Regards,
> Fritz
> "
> "-----------------------------------------------------------------------
> --------
> " Moving cursor to other windows
> "
> " shift down   : change window focus to lower one (cyclic)
> " shift up     : change window focus to upper one (cyclic)
> " shift left   : change window focus to one on left
> " shift right  : change window focus to one on right
> "-----------------------------------------------------------------------
> --------
> "
> nmap <s-down>   <c-w>w
> nmap <s-up>     <c-w>W
> nmap <s-left>   <c-w>h
> nmap <s-right>  <c-w>l
> "
> 
> 
> 
> 
> Disclaimer; The information contained in this communication is confidential
> and may be legally privileged. It is intended solely for the use of the individual
> or entity to whom it is addressed and others authorized to recieve it. 
> Use of this information, in whatever way, by others is strictly prohibited
> and may be unlawful. GREEFA does not accept legal responsibility
> for this e-mail message due to the insecure nature of internet
> communications.  


So you mapped the shift-arrows and now you want to get them back
elsewhere? Easy. Use nonrecursive mappings, here's an example:

	:inoremap	<F1>	<S-Home>
	:inoremap	<F6>	<S-Left>
	:inoremap	<F7>	<S-Down>
	:inoremap	<F8>	<S-Up>
	:inoremap	<F9>	<S-Right>
	:inoremap	<F12>	<S-End>

Best regards,
Tony.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic