Giter Site home page Giter Site logo

dotfiles's Introduction

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

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

install vim-plug

curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

https://github.com/junegunn/vim-plug

install all vim plugin

vim
:PlugInstall

all finished, have fun

EXTENSION

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 

install ctags

brew install --HEAD universal-ctags

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.