You are not logged in.

#1 2012-12-24 08:40:48

chu887
Member
Registered: 2012-08-25
Posts: 23

vim shortcut setup

Hello,everyone:
    I just start to use VIM editor for development.  The switch-window-key , Ctrl +w +w , not corfortable to me , so  I want to change it to <C+Tab>, but I don't find a method  in the help documents.
help me ,thanks very much.

Offline

#2 2012-12-24 11:27:19

chu887
Member
Registered: 2012-08-25
Posts: 23

Re: vim shortcut setup

It seems that " map <C-w><C-w>  <C-Tab> "   does not work as if shortcut <C-Tab> has been used. But I'm not sure whether <C-w><C-w> is the right representation of the toggle window command,either.

Offline

#3 2012-12-24 13:18:49

chu887
Member
Registered: 2012-08-25
Posts: 23

Re: vim shortcut setup

The problem has been resolved.  The order of  key is wrong.   The right is  " map <S-Tab>  <C-w><C-w>", and the better is:  "  nnoremap <S-Tab>  <C-w><C-w> " .

Offline

#4 2012-12-24 17:36:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: vim shortcut setup

Please remember to mark the thread as solved.

Offline

#5 2012-12-24 19:16:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: vim shortcut setup

Also, please use the 'edit' button; bumping is discouraged...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB