Vim Fluency, Tmux Panes and iTerm
Learned some more vim and tmux over the weekend.
- Learned about folding in vim –
zoto open a fold.
:help foldingwill give more info.
:NERDtreeallows me to navigate much easier.
- ControlP bound to
ctrl-pallows me to use Textmate style file find.
- Since I have
set mouse=ain my
.vimrc, copy and paste to the system clipboard no longer works the same. I can select with my mouse while holding down the
optbutton and that will bring my regular copy back. However, this is not as useful since I have numbers in the gutter. Instead, I have
I’m able to use vim more fluently now.
I turned off iTerm Preference General > Window > Use Lion-style Fullscreen windows because there is a delay due to the swiping animation when it has to switch desktop spaces. With it turned off, it’s real zippy.
Learned that you can detach a pane via
<prefix> ! (prefix is
ctrl-b but I
bound it to
ctrl-a because I find the screen binding more convenient – ie
closer). The following is my
The first three lines allow my mouse and tmux to interact as you’d expect from
a GUI interface. The rest is just rebinding to be more like the unix
command – something I’m more familiar with.