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
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
set zsh as default shell
chsh -s /bin/zsh
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
https://github.com/junegunn/vim-plug
vim
:PlugInstall
all finished, have fun
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-keyd
deattch session<c-z>
sleep session,fg
wake up session$
rename session
t
create new windowd
close current windowb
rename current windoww
display all windows number, changef
window search
c
close current panes
split for new panev
vertical split for new paneh,j,k,l
select 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
brew install --HEAD universal-ctags