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

Vim

Avatar for Yun Chen Yun Chen
October 01, 2014

 Vim

The best code editor

Avatar for Yun Chen

Yun Chen

October 01, 2014
Tweet

More Decks by Yun Chen

Other Decks in Programming

Transcript

  1. Why Vim? • C/C++ -> DevC++ 、 Code::Blocks • Java

    -> JCreater 、 Eclipse • Python -> PyPE 、 codeEditor And more … … … …
  2. Why Vim? • Eclipse 打開快睡著 ZZZ (包袱太重) • 不同語⾔言可能有不同的專屬編輯軟體 •

    承上…要能順利安裝完他們更想哭 • 同時編寫數個不同語法需快速切換檔案 And more … … … …
  3. Why not other editor? • Sublime • Notepad++ • Dreamweaver

    • TextWrangler And more … … … …
  4. Vim Command Ctrl + z: Back to Terminal ; fg:

    Back to Vim Ctrl + w: Delete a word ; Ctrl + u: Delete a line Ctrl + r: Find history command
  5. Vim Command w W: ⼀一次跳⼀一個字 (往後) ! b B: ⼀一次跳⼀一個字

    (往前) ! g: 同⾏行微移動 ! gg: 直接到⽂文件最前 ! G: 直接到⽂文件最後 f F + [字元]: 尋找特殊字元
  6. Vim Command :e + 檔名: 開新檔案,原本的放背景 ! :ls: 列出⺫⽬目前開出檔案 !

    :b2: 跳到第2個vim(多個的情況) ! :bd: 關掉當前⾴頁⾯面,但不會關掉 VIM
  7. Vim Command !! + Shell: 呼叫 Shell ! >>: 該⾏行縮排

    (往後) ! <<: 該⾏行縮排 (往前) ! ~: ⼀一個字元⼤大⼩小寫互換
  8. Try eddie-vim sh <(curl -L https://github.com/kaochenlong/eddie-vim/ raw/master/utils/install.sh) sh <(wget --no-check-certificate

    https://github.com/ kaochenlong/eddie-vim/raw/master/utils/install.sh -O -) Not so hard right?
  9. Then…Find you want • 1. Go to Github • 2.

    Type “vim-ls” (like:LiveScript) • 3. Clone it!(git clone git://github.com/gkz/vim-ls.git) • 4.Done! (It’s Easy)