my zsh & vim config
we have to add a third-party PPA. Do this for a successful installation
sudo add-apt-repository ppa:fcwu-tw/ppa
sudo apt-get update
sudo apt-get install vim
sudo apt-get install zsh
download
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
set zsh as default shell
chsh -s /bin/zsh
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
vim
:BundleInstall
all finished, have fun
use j dir fast and auto jump to the path, the path must be visit before
//linux
sudo apt-get install autojump
//mac
brew autojump
//install by source
git clone git://github.com/joelthelion/autojump.git
cd autojump
./install.py
then restart shell
example:
- i visit path for
/home/vast/code/git/dotfilesbefore - now i am in
~/dir - i can input
j dotto the currect path - maybe same name dir name, i can use like that
j code dot
sudo apt-get install tmux
a helpful blog about how to use tmux
all tmux command must press <C-b> first
when on shell,
tmux create a tmux session
tmux ls display all session
tmux attach [-t sessionname] back to prev session or enter another session by sessionname
tmux kill-session [-t sessionname] kill session
?display bind-keyddeattch session<c-z>sleep session,fgwake up session$rename session
tcreate new windowdclose current windowbrename current windowwdisplay all windows number, changefwindow search
cclose current panessplit for new panevvertical split for new paneh,j,k,lselect pane like vim
A plugin for vim search like vimgrep Ag on github
first must install the_silver_searcher by brew
and load ag.vim by vundle
finilly can use :Ag [options] key-word [dir] in vim
it is fast than vimgrep
A app for mac, it can define some fast-key for some operate slate on github
quick install
cd /Applications && curl http://www.ninjamonkeysoftware.com/slate/versions/slate-latest.tar.gz | tar -xz
link slate to ~/.slate
<c-p>: open ctrlp file search
<F2>: open nerdtree