oh-my-zsh tmux spf13-vim
I’m trying to use oh-my-zsh, tmux and spf13-vim. Actually most of my configurations come from OS X 11.11 El Capitanでターミナル環境を整える (Homebrew+zsh+tmux+vim). Yes, it’s written in Japenese and I have to use translator.
I just write down some accelerator key to help me remember it.
oh-my-zsh
I don’t change anything except I change ZSH_THEME
to be robbyrussell
.
tmux
This is not the default configuration, want to find the default configuration? use man tmux
key(Prefix C-z) | |
---|---|
defualt: C-b | |
s | show all sessions |
v | copy mode |
r | reload conf |
| | split-window -v |
- | split-window -v |
h | select-pane -L |
j | select-pane -D |
k | select-pane -U |
l | select-pane -R |
C-h | select-window -t :- |
C-l | select-window -t :+ |
Space | select-window -t :+ |
PS: tmuxinator is your friend.
spf13-vim
I have learn a lot of plugins to finish this. You can use :help to learn basic vi. Just visiting spf13-vim will be fine. Default <Leader>
key is \
, but spf13-vim change it to be ,
.
-
NERDTree file navigation
<Leader>e
to launch<C-E
to toggle NERDTree<leader>e
or<leader>nt
to load NERDTreeFind which opens NERDTree where the current file is located.
-
ctrlp file finder
<c-p>
to launch
-
Surround managing all the ‘”[{}]”’ etc
Old text Command New text ~ “Hello *world!” ds” Hello world! [123+4*56]/2 cs]) (123+456)/2 “Look ma, I’m *HTML!” cs” Look ma, I’m HTML!
if *x>3 { ysW( if ( x>3 ) { my $str = *whee!; vllllS’ my $str = ‘whee!’; -
<Leader>c<space>
to toggle comments
-
Syntastic integrated syntax checking
-
if you want to use it, you should install it with
brew install vim --with-lua --override-system-vi
-
Fugitive
<leader>gs
:Gstatus<leader>gd
:Gdiff<leader>gc
:Gcommit<leader>gb
:Gblame<leader>gl
:Glog<leader>gp
:Git push
-
Tabularize
<Leader>a=
:Tabularize /=<Leader>a:
:Tabularize /:<Leader>a::
:Tabularize /:\zs<Leader>a,
:Tabularize /,<Leader>a<Bar>
:Tabularize /
-
CTRL-]
to jump to function definition<Leader>tt
to toggle tagbar panelCtrl-T
to jump back up one level
-
<leader><leader>
to trigger EasyMotion
-
:noautocmd vimgrep /{pattern}/ **/*
:cprev
previous file:cnext
next file:cfirst
first file:clast
last file
-
buffers and tabs
:buf num
switch to num buffer:bn
switch to next buffer:bp
switch to previous buffer:bd
delete buffer
-
add tabs to align code
- start
visual mode
ana use>
or<
to tab selected code
- start
-
Use
u
to undo, and<C-R>
to redo (reverse an undo).
These are the local plugins to use: