Re:Show HN: tmux2html - Render full tmux windows or individu...
by tombert on Thursday March 31, 2016 @02:29PM
(#11399411)
I use tmux as my primary "IDE" for everything. I personally use the backtiick (`) as my prefix, because ctrl-B conflicted with Emacs.
Now I use vim for everything, but I still use the same prefix because I've gotten used to it.
If you're stuck using someone else's computer, you can always pass through the prefix by hitting it twice...For example, if I ever need a backtick, I can just tap it two times.
https://github.com/Tombert/dotfiles/blob/master/tmux/.tmux.c...
Re:Show HN: tmux2html - Render full tmux windows or individu...
by tommyallen on Thursday March 31, 2016 @02:36PM
(#11399459)
The thing I love so far about Vim is no one argues about key bindings because no one is right. But, almost everyone agrees that the default leader key is awful. I imagine it's the same for the Emacs community.
Re:Show HN: tmux2html - Render full tmux windows or individu...
by tombert on Thursday March 31, 2016 @02:50PM
(#11399564)
I actually like the default bindings for both, but yes, everyone in the community seems to have a slightly fragmented opinion of them :D.
Re:Show HN: tmux2html - Render full tmux windows or individu...
by tommyallen on Thursday March 31, 2016 @04:38PM
(#11400402)
You like the backslash as the leader key?! Well I never!
Re:Show HN: tmux2html - Render full tmux windows or individu...
by tombert on Thursday March 31, 2016 @05:07PM
(#11400554)
I'm a goober and have never once used the leader key...I guess I'm a bit of a noob.
Re:Show HN: tmux2html - Render full tmux windows or individu...
by tommyallen on Thursday March 31, 2016 @05:33PM
(#11400718)
A leader key will expand the number of keys available to you. You can have maps like <leader>j that doesn't interfere with the default j map. There is also <localleader> that does the same thing. They're like having a sticky <ctrl> or <alt> but more comfortable. Read up on them (:h mapleader) and you will have more sun shine fun with Vim! For the record I use the comma as the <leader> key and leave <localleader> as the backslash since it's used rarely.
Re:Show HN: tmux2html - Render full tmux windows or individu...
by cyphar on Thursday March 31, 2016 @06:00PM
(#11400913)
I started using ? as the leader (I don't do reverse searches). The other options (, \) always get in the way while programming. I might try the backtick, but it means that programming in languages that use backticks (Rust, I think) would be a pain.
Re:Show HN: tmux2html - Render full tmux windows or individu...
by tommyallen on Thursday March 31, 2016 @06:40PM
(#11401161)
The backtick is also used for for jumping to marks. I wouldn't recommend overriding that one. `. will put your cursor back to the last insertion point. '. will put you back on the last insertion line. They're quite handy. A common key that is used is <space>. There' is also using CAPSLOCK as a leader key, but it's not very portable since it requires configuring the OS. I think ? is fine for a leader key as long as you know that you're not going to use reverse search ever.
Looks like HN is slowing down the post speeds here. If you want to talk about Vim more, send me a message @cloudsiphon on Twitter.
Re:Show HN: tmux2html - Render full tmux windows or individu...
by tommyallen on Thursday March 31, 2016 @02:32PM
(#11399430)
A convert! (Score!) To make navigating Vim and tmux splits more palatable, I highly recommend this plugin: https://github.com/christoomey/vim-tmux-navigator
I've been using vim for a long time now, although I am still a neophyte.
And I have tried tmux some time ago, but couldn't get used to the keybindings that conflicted with those of vim (I'm against doing too much customization -- specially of keybindings --, because that will make me useless when using other people's computers). Is this a real problem or was it just something I did wrong?