Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: althalus on November 07, 2009, 06:36:45 PM
-
So it seems that ctrl+ left,right,up, down don't map properly in tinycore.
I would very much like to be able to map these keys in vim.
Instead, pressing those keys inserts the letters a through d above the current line.
Anyone know a solution to this?
-
Is this is a tty or in X? Do you have a non-US keyboard?
-
In X, using US layout. It works fine in Linux Mint (which uses xterm) but not in TC (Which appears to se rxvt). I can see via google that rxvt seems to handle ctrl+arrows slightly different to xterm, but nothing that seems to be a solution for vim.
-
Arrows work without <ctrl>. 'w' and 'b' will move forward, back by word instead of space. Puppy uses rxvt, and the ctrl + <--> act like b/w . ... probably can be set in .vimrc
edit: <shift> + <--> moves like b/w
-
Jumping back and forward by word isn't what I want them for. Hm, but puppy has it working? Thanks, I'll see if I can work out how they do it.
-
Arrows work without <ctrl>. 'w' and 'b' will move forward, back by word instead of space. Puppy uses rxvt, and the ctrl + <--> act like b/w . ... probably can be set in .vimrc
edit: <shift> + <--> moves like b/w
EDIT: Found my solution:
map <Esc>Oa <C-W>k
map <Esc>Ob <C-W>j
map <Esc>Oc <C-W>l
map <Esc>Od <C-W>h
This gives me the behaviour I was after. =)
-
EDIT: Found my solution:
map <Esc>Oa <C-W>k
map <Esc>Ob <C-W>j
map <Esc>Oc <C-W>l
map <Esc>Od <C-W>h
This gives me the behaviour I was after. =)
Cool....glad you got it working!