Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Conquer the world with Vim & Tmux!

ferdev
March 29, 2012

Conquer the world with Vim & Tmux!

ferdev

March 29, 2012
Tweet

Other Decks in Programming

Transcript

  1. 1. Why Vim? 2. The Path to Vim. 3. Using

    Vim. 4. Mastering Vim. 5. Tmux
  2. VIM

  3. Reasons that move me to vim. - Continuous Textmate crashes.

    - Bored of traditional editors. - Wanted to try something new.
  4. InSERT some keys: - i (insert) - a (append) -

    c (change) - <esc>, jk (exit mode)
  5. Normal some keys: - j, k (up, down) - w,

    e, b (words) - f (find) - t (until)
  6. selection some keys: - v (normal) - V (lines) -

    <ctrl>-v (columns) - <esc>, jk (exit mode)
  7. example 1 vii: - v (visual selection) - i (inside

    the same) - i (indentation level)
  8. example 3 2dt(: - 2 (2 times) - d (delete)

    - t (until) - ( (the first parentheses)
  9. COPY & PASTE - y (yank) - p (paste) -

    c (change - yank) - d (deletes - yank) - x (delete char - yank) - http://bit.ly/rPLnDw
  10. Panes & tabs - <leader>v (vertical pane) - <leader>h (horizontal

    pane) - <leader>n (new tab) - <leader>0-9 (go to tab) - :tabc (close tab) - :tabo (close all tabs but this)
  11. PLUGINS - zoomin - ack - ctrlp - vim-surround -

    tslime (send commands to tmux)
  12. VIM <3 git submodules Adding a new plugin: - $

    git submodule add plugin_git_repo_url bundle/ plugin-folder Updating all plugins: - $ git submodule foreach git pull