You are not logged in.
Since i type Dvorak, I wish to have a mapping to allow me to move between windows in vim with Ctrl-W d/h/t/n instead of Ctrl-W h/j/k/l . I have looked in the vim help files, and online, but can't find how to do it. I tried eg.
:noremap <c-w>d<c-w> <c-w>h<c-w>
in vimrc, and the same thing but with <Down> instead of 'h', but neither worked... i'm not sure how to do this.
--------------
The second thing I want to ask is what the easiest way to bind middlemouse button to a keyboard combo is, so that I can paste stuff highlighted in eg. firefox into my terminal running screen - any ratpoison users will understand my desire to use the mouse as little as possible.. i use Screen's scrollback buffer mode to copy and paste everything within the terminal itself using only the keyboard, but I wish to be able to do the same thing from firefox to the terminal.
---------------
The third thing is (and I'm aware I'm less likely to get a solution to this one ) are there any obvious reasons why I wouldn't be able to switch to a tty from an X server? I've had this problem for several months now, and have still not resolved it (mainly because my own research alongside forum posts hasn't turned up any potential causes of the issue).
---------------
I love you all
Komodo
.oO Komodo Dave Oo.
Offline
Here's mine:
:noremap d h
:noremap h j
:noremap t k
:noremap n l
:noremap k d
:noremap l n
:noremap j t
:noremap ^Wd ^Wh
:noremap ^Wh ^Wj
:noremap ^Wt ^Wk
:noremap ^Wn ^Wl
:inoremap ^] ^[A
:inoremap ð ^N
Dusty
Offline
Awesome Dusty, cheers - that solves Question 1.
Any takers for Qs 2 or 3?
Komodo
.oO Komodo Dave Oo.
Offline
Since i type Dvorak, I wish to have a mapping to allow me
The second thing I want to ask is what the easiest way to bind middlemouse button to a keyboard combo is, so that I can paste stuff highlighted in eg. firefox into my terminal running screen - any ratpoison users will understand my desire to use the mouse as little as possible.. i use Screen's scrollback buffer mode to copy and paste everything within the terminal itself using only the keyboard, but I wish to be able to do the same thing from firefox to the terminal.
shift+insert
Offline
There's also a few apps that can be called to dump the X selection/clipboard buffers... xcutsel comes to mind.
You can probably bind a key in screen to dump xcutsel to the tmp file screen can use as a copy/paste buffer, then use screen's paste functionality.
I bring this up only because there's potential here to do wacky things with screen's paste-from-file setup, i.e.
date > /tmp/screen-exchange
bam, you can bind a key to "insert current date"
Offline
shift+insert
Sadly I don't have an insert key on my keyboard...
There's also a few apps that can be called to dump the X selection/clipboard buffers... xcutsel comes to mind.
You can probably bind a key in screen to dump xcutsel to the tmp file screen can use as a copy/paste buffer, then use screen's paste functionality.I bring this up only because there's potential here to do wacky things with screen's paste-from-file setup, i.e.
date > /tmp/screen-exchange
bam, you can bind a key to "insert current date"
Cool tip phrak, thanks muchly
So, that's Q2 down. Anybody brave enough to attempt Q3? It's a toughie :?
.oO Komodo Dave Oo.
Offline
Here's mine:
:noremap ^Wd ^Wh
:noremap ^Wh ^Wj
:noremap ^Wt ^Wk
:noremap ^Wn ^WlDusty
I already had the navigation keys mapped, but I just tried these for window switching, and no joy... .vimrc didn't like the syntax. I tried them in this format:
:noremap <C-W>d <C-W>h
..but vim still doesn't like it; there's no effect.
Any suggestions?
.oO Komodo Dave Oo.
Offline
Dunno if this will help you. I had the same problem though...
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline