Slide 1

Slide 1 text

Vim! The best code editor Yun Chen

Slide 2

Slide 2 text

Why Vim? • C/C++ -> DevC++ 、 Code::Blocks • Java -> JCreater 、 Eclipse • Python -> PyPE 、 codeEditor And more … … … …

Slide 3

Slide 3 text

Why Vim? • Eclipse 打開快睡著 ZZZ (包袱太重) • 不同語⾔言可能有不同的專屬編輯軟體 • 承上…要能順利安裝完他們更想哭 • 同時編寫數個不同語法需快速切換檔案 And more … … … …

Slide 4

Slide 4 text

Why Vim? • 開放原始碼,能按照⾃自⼰己的需求調整 • Github能找到所有你想要的功能 • ⽀支援你想得到的語法 keyword 顏⾊色標記 • 編寫其它語法不需要重新習慣編輯環境 And more … … … …

Slide 5

Slide 5 text

Why not other editor? • Sublime • Notepad++ • Dreamweaver • TextWrangler And more … … … …

Slide 6

Slide 6 text

因為不夠帥(誤)

Slide 7

Slide 7 text

Why not other editor? • 新的語法可能沒辦法⽴立即⽀支援(swift) • 鍵盤指令較無Vim完善 • 強迫⾃自⼰己⼿手保持於鍵盤上(不⽤用到滑⿏鼠) • Freeeeeeeeeeeeeeeeeeeeeeeeeeeee And more … … … …

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

Vim Command i a o: 編輯模式 v V: 視覺模式 Ctrl + c , Ctrl + [: Back to Normal

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

Vim Command w W: ⼀一次跳⼀一個字 (往後) ! b B: ⼀一次跳⼀一個字 (往前) ! g: 同⾏行微移動 ! gg: 直接到⽂文件最前 ! G: 直接到⽂文件最後 f F + [字元]: 尋找特殊字元

Slide 13

Slide 13 text

Vim Command zz: 游標畫⾯面置中 zb: 游標畫⾯面置底 zt: 游標畫⾯面置底

Slide 14

Slide 14 text

Vim Command :/[⽂文字]: 搜尋關鍵字 n: 下⼀一個 N: 上⼀一個

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

Vim Command :new: 上下開新視窗 ! :vnew: 左右開新視窗 ! ctrl+ww: 切換⾄至上⼀一個視窗 ! ctrl+hjkl: 上下左右切換式窗

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

Vim Command :e + 檔名: 開新檔案,原本的放背景 ! :ls: 列出⺫⽬目前開出檔案 ! :b2: 跳到第2個vim(多個的情況) ! :bd: 關掉當前⾴頁⾯面,但不會關掉 VIM

Slide 19

Slide 19 text

Vim Command D: 刪除後⾯面所有段落 C: 刪除前⾯面所有段落 x: 砍掉當下的⼀一個字

Slide 20

Slide 20 text

Vim Command !! + Shell: 呼叫 Shell ! >>: 該⾏行縮排 (往後) ! <<: 該⾏行縮排 (往前) ! ~: ⼀一個字元⼤大⼩小寫互換

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

Vim Command y: 複製選取 ! yy: 複製整⾏行 ! p: 貼上

Slide 23

Slide 23 text

Vim too ugly?

Slide 24

Slide 24 text

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?

Slide 25

Slide 25 text

Upgrade your vim

Slide 26

Slide 26 text

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)

Slide 27

Slide 27 text

Q & A