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

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: 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

if statements in .tmux.conf

2011-05-28 Thread qwerty asdfg
Hello there. I am having issues with the if statements I have a line in my .tmux.conf like this: if '[ -n $DISPLAY ]' 'set -g default-terminal screen-256color' But it only works if I open another window,else the terminal is still screen..Is there any way to fix this? ---

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: if statements in .tmux.conf

2011-05-28 Thread Randy Stauner
I don't know too much about tmux internals but I'm going to take a guess here: I think the if-shell command is forking and running asynchronously and tmux is creating the first window before that command returns and sets the global option. Simply setting the option (with -g) does work as expected

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: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 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

Provide command line arguments with arguments

2011-05-28 Thread Helmut Schneider
Hi, http://www.mail-archive.com/tmux-users@lists.sourceforge.net/msg01037.html Has this ever been solved? Here[tm] this is a show stopper. Imagine a shell script which takes command line options (e.g. using getopts) and pass that script to tmux: [helmut@BSDHelmut ~]$ tmux new /usr/local/bin/pa

Re: Provide command line arguments with arguments

2011-05-28 Thread Nicholas Marriott
Please give me an example of exactly what you are trying to do that is impossible. On Sun, May 29, 2011 at 12:28:04AM +0200, Helmut Schneider wrote: > Hi, > > http://www.mail-archive.com/tmux-users@lists.sourceforge.net/msg01037.html > > Has this ever been solved? Here[tm] this is a show stopp

Re: Provide command line arguments with arguments

2011-05-28 Thread Micah Cowan
On 05/28/2011 03:28 PM, Helmut Schneider wrote: > While from a shell you can put single quotation marks around the comman when > you e.g. put your script into an alias or call it from another script there > is/seems no way to do that successfully. Your sentence here doesn't make much sense to me,