Skip to content

juen/dotfiles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

dotfiles

my zsh & vim config

BASE

install vim74 on linux

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

install zsh

sudo apt-get install zsh

install oh-my-zsh

download

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

set zsh as default shell

chsh -s /bin/zsh

install vundle

git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

install all vim plugin

vim
:BundleInstall

all finished, have fun

EXTENSION

autojump

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/dotfiles before
  • now i am in ~/ dir
  • i can input j dot to the currect path
  • maybe same name dir name, i can use like that j code dot

tmux

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

session

  • ? display bind-key
  • d deattch session
  • <c-z> sleep session, fg wake up session
  • $ rename session

window

  • t create new window
  • d close current window
  • b rename current window
  • w display all windows number, change
  • f window search

pane

  • c close current pane
  • s split for new pane
  • v vertical split for new pane
  • h,j,k,l select pane like vim

Ag

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

slate

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

some command for my vim plugin

<c-p>: open ctrlp file search
<F2>: open nerdtree 

About

my zsh & vim config

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors