14,907 reputation
13351
bio website
location McKinney, TX
age
visits member for 4 years, 9 months
seen yesterday

Feb
28
answered Is it possible to launch MacVim NOT in full screen mode?
Feb
20
answered Tmux swap window with window to the left
Feb
16
answered Issues reconfiguring send-prefix for tmux
Feb
14
awarded  Necromancer
Feb
13
answered Can't resize vim splits inside tmux
Feb
13
comment Can't resize vim splits inside tmux
Have you tried also setting ttymouse=xterm2 in Vim? That lets me drag around Vim splits inside tmux (it seems to default to xterm2 when run with TERM=xterm, which is probably the case outside of tmux).
Feb
12
comment Despite the fact that GIT does NOT store file deltas, can you still rollback to previous file versions (unlimited times?)
@AlirezaNoori: It all depends on the nature of the data and the changes captured (size of the file, compressibility of the file, size and location of the changes, etc.). Something like that should certainly be possible (depending on the specifics). In general, Git’s pack files can draw from a larger selection of bases for its delta compression as compared to the strictly reverse-chronological deltas that SVN servers use (used? I do not follow SVN development…). If you have some specific question in mind, you should consider asking a new question that includes all pertinent details.
Feb
5
answered In tmux, arrow and ctrl+arrow both result in the same code
Jan
30
awarded  Enlightened
Jan
30
awarded  Nice Answer
Jan
28
awarded  Informed
Jan
26
comment Correct way to get emacs 16 color support inside tmux?
@agrubb: The terminfo entry in newer releases of ncurses clears ncv from its screen entries, so I guess your Emacs binary is using an older version if the terminfo database. You could build a custom entry that clears ncv with a command like this: { infocmp -x screen-256color; printf '\t%s\n' 'ncv@,'; } > /tmp/t && tic -x /tmp/t (when run as non-root, it will write a new screen-256color entry under ~/.terminfo/). You can get an overview of the faces with M-x list-faces-display to check how (e.g.) underline is shown.
Jan
26
comment Correct way to get emacs 16 color support inside tmux?
@agrubb: Emacs is probably using a terminfo entry for your active TERM (e.g. screen-256color) that includes an ncv capability that says that the terminal can not support underlining and color at the same time; this causes Emacs to forgo underlining in favor of bold (see the defface underline in faces.el). You can check your terminfo entry with tput ncv (ideally, to support underlining you need -1, or a number where the the “2 bit” is off). In emacs you can use M-x : (display-supports-face-attributes-p '(:underline t)) to check for underline support.
Jan
23
answered Tmux: start copy mode and selection at the same time
Jan
23
answered Vim: How do you remap the functionality of CTRL-W to a different key?
Jan
23
comment tmux: occasionally CTRL+B <arrow key> prints character code ([A, [B, [C, or [D) instead of switching panes
Assume the terminal wants to send the three byte sequence ESC [ D, but it pauses after the first byte. If this occurs after your Prefix, the leading ESC is “eaten” as a bindable key combination (Prefix ESC). In vi-style command line editing mode it is “eaten” as the vi return-to-normal-mode key. When you are typing at a tty (e.g. bash in tmux), the ESC is never “eaten”, it it just sent on to the underlying tty as a “separate” key; if the listening process (bash) is not as picky about Escape vs. start-of-sequence, then it will simply wait for the [D and treat it as a left arrow.
Jan
22
comment tmux: occasionally CTRL+B <arrow key> prints character code ([A, [B, [C, or [D) instead of switching panes
Well, that behavior at your tmux command-line definitely sounds like a delayed escape sequence problem: the ESC takes you out of insert mode, the [ is ignored (it is not bound in the vi-edit table), and the D is the delete-end-of-line command. I would not have expected a high escape-time to worsen the interrupted-escape-sequence problem; though, it would make vi-style bindings inconvenient—you would always need to wait for escape-time to elapse after pressing the ESC key (i.e. to exit insert mode), and before starting to type normal-mode commands (e.g. b to move back a word).
Jan
22
answered tmux: occasionally CTRL+B <arrow key> prints character code ([A, [B, [C, or [D) instead of switching panes
Jan
22
comment tmux configuration conditional to OS
The if-shell and run-shell tmux commands are currently asynchronous (as of tmux 1.7); they effectively run their shell command in the background, and any tmux commands that they run will only be executed after any commands that come after the if-shell or run-shell command itself (tmux is single-threaded). Effectively, if you use if-shell or run-shell in ~/.tmux.conf, the initial session (and any sessions, windows, or panes created explicitly created through ~/tmux.conf) will lack any tmux configuration arranged through if-shell or run-shell commands.
Jan
21
awarded  Nice Answer