Re: Prefix key preference [Was: Run long commands in Vim]

2011-05-31 Thread Randy Stauner
I think at the time I frequently found myself working in environments where typing "vi" would end up in compatible mode (which I never wanted). (Probably a lot of "sudo vi file" on a new OS install...). It felt silly to have to keep installing workarounds like multiple aliases or something when i c

Re: Prefix key preference [Was: Run long commands in Vim]

2011-05-30 Thread Chas. Owens
On Mon, May 30, 2011 at 10:06, Randy Stauner wrote: snip > As another example, when I tried to teach myself to stop using "vi" and type > out "vim" i simply aliased "vi" to echo me a reminder to use "vim" and then > do nothing.  I quickly learned to stop doing that and have since removed my > alia

Re: Prefix key preference [Was: Run long commands in Vim]

2011-05-30 Thread Randy Stauner
I currently use ctrl-/. Though, strangely that key combination on my computer actually sends ctrl-_ (which is how i have to specify it in my tmux conf). Something about it makes me uncomfortable, but it's easy for my fingers to reach and doesn't clash with any other keys. tl;dr: I, too, was tired

Re: Prefix key preference [Was: Run long commands in Vim]

2011-05-28 Thread Patrick Shanahan
* Chas. Owens [05-28-11 16:31]: > snip > > At the very least it clashes with bash's emacs mode C-a command to > move the cursor to the begging of the line. yes, it is a great inconvenience to: -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.or

Re: Prefix key preference [Was: Run long commands in Vim]

2011-05-28 Thread Stroller
On 28/5/2011, at 9:28pm, Chas. Owens wrote: > On Sat, May 28, 2011 at 14:49, Stroller > wrote: >> >> On 28/5/2011, at 9:24am, Julien Jehannet wrote: ... I use CTRL-a, which is the same as screen's prefix key. A lot of blogs and introductions to tmux suggest this, so I assumed it

Re: Prefix key preference [Was: Run long commands in Vim]

2011-05-28 Thread Chas. Owens
On Sat, May 28, 2011 at 14:49, Stroller wrote: > > On 28/5/2011, at 9:24am, Julien Jehannet wrote: >>> ... >>> I use CTRL-a, which is the same as screen's prefix key. >>> A lot of blogs and introductions to tmux suggest this, so I assumed it was >>> what most people use. >> >> But with the same d

Re: Prefix key preference [Was: Run long commands in Vim]

2011-05-28 Thread Stroller
On 28/5/2011, at 9:24am, Julien Jehannet wrote: >> ... >> I use CTRL-a, which is the same as screen's prefix key. >> A lot of blogs and introductions to tmux suggest this, so I assumed it was >> what most people use. > > But with the same drawback often complained by screen users then. What dra

Re: Prefix key preference [Was: Run long commands in Vim]

2011-05-28 Thread Jakob Hetzelein
Am 28.05.2011 10:24, schrieb Julien Jehannet: > 2011/5/28 Stroller : >> >> On 27/5/2011, at 5:18pm, Shamaoke wrote: >>> ... >>> Then and up to now I've used "Ctrl-x" and, as you know, it clash >>> with "edit-and-execute-command". Is there any "safe" key? >> >> I use CTRL-a, which is the same as scr

Prefix key preference [Was: Run long commands in Vim]

2011-05-28 Thread Julien Jehannet
2011/5/28 Stroller : > > On 27/5/2011, at 5:18pm, Shamaoke wrote: >> ... >> I tackled with it. The problem was that I set the prefix key to "Ctrl-x" >> and, of course, tmux "ate" it when I tried to run the shortcut. Hence >> the next question: what is the best prefix key to use with tmux? I used >>

Re: Run long commands in Vim

2011-05-28 Thread Stroller
On 27/5/2011, at 5:18pm, Shamaoke wrote: > ... > I tackled with it. The problem was that I set the prefix key to "Ctrl-x" > and, of course, tmux "ate" it when I tried to run the shortcut. Hence > the next question: what is the best prefix key to use with tmux? I used > "Ctrl-b" before, but it c

Re: Run long commands in Vim

2011-05-27 Thread Joshua Keroes
In cash, C-a is beginning-of-line. C-b is backward-char. By default, if the tmux prefix isn't changed, then a single C-b will trigger tmux and two C-b's will send the second one to bash, running backward-char. On Fri, May 27, 2011 at 9:18 AM, Shamaoke wrote: > 27.05.2011 19:34, Florian CROUZAT

Re: Run long commands in Vim

2011-05-27 Thread Shamaoke
27.05.2011 19:34, Florian CROUZAT пишет: > On Fri, 27 May 2011 07:08:54 -0700, Randy Stauner wrote: >> what mode are you in that makes ctrl x ctrl e run the command? >> In my vim in insert mode it scrolls > [...] > >> So I'm not exactly sure what ctrl x ctrl e is doing on your pc, > Search fo

Re: Run long commands in Vim

2011-05-27 Thread Florian CROUZAT
On Fri, 27 May 2011 07:08:54 -0700, Randy Stauner wrote: > what mode are you in that makes ctrl x ctrl e run the command? > In my vim in insert mode it scrolls [...] > So I'm not exactly sure what ctrl x ctrl e is doing on your pc, Search for C-xC-e (or edit-and-execute-command) in man bash.

Re: Run long commands in Vim

2011-05-27 Thread Randy Stauner
what mode are you in that makes ctrl x ctrl e run the command? In my vim in insert mode it scrolls and in normal mode the ctrl x decrements the current character (turns e to d or 2 to 1). So I'm not exactly sure what ctrl x ctrl e is doing on your pc, but often if i am using vim to compose a comma

Re: Run long commands in Vim

2011-05-27 Thread contact
On Fri, 27 May 2011 15:45:41 +0400, Shamaoke wrote: > Hi. > > In the console it's possible to write long commands in Vim and then > to > run them. In order to do it one should press the combination Ctrl + > x, > Ctrl + e. However, for some reason this shortcut doesn't work in > Tmux. Works fo

Run long commands in Vim

2011-05-27 Thread Shamaoke
Hi. In the console it's possible to write long commands in Vim and then to run them. In order to do it one should press the combination Ctrl + x, Ctrl + e. However, for some reason this shortcut doesn't work in Tmux. How can I achieve this feature to work? Thanks. Debian GNU/Linux 5.0.6; GNO