Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Vim 基本操作
Search
Alex
March 04, 2019
Technology
1
110
Vim 基本操作
Alex
March 04, 2019
Tweet
Share
More Decks by Alex
See All by Alex
How to integrate GitLab CICD into B2B service.pdf
alexsu
0
280
Jenkins Quick Guide
alexsu
0
130
Top IDEs & Code Editors for Data Science
alexsu
0
41
Shell scripting 基本教學
alexsu
0
37
Linux_Command-line_指令與基本操作.pdf
alexsu
0
84
Introduction to Git for Data Science
alexsu
0
280
Other Decks in Technology
See All in Technology
AI時代だからこそ考える、僕らが本当につくりたいスクラムチーム / A Scrum Team we really want to create in this AI era
takaking22
7
4k
自動テストのコストと向き合ってみた
qa
0
210
Shirankedo NOCで見えてきたeduroam/OpenRoaming運用ノウハウと課題 - BAKUCHIKU BANBAN #2
marokiki
0
170
綺麗なデータマートをつくろう_データ整備を前向きに考える会 / Let's create clean data mart
brainpadpr
3
370
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
3
20k
AI ReadyなData PlatformとしてのAutonomous Databaseアップデート
oracle4engineer
PRO
0
230
AI時代こそ求められる設計力- AWSクラウドデザインパターン3選で信頼性と拡張性を高める-
kenichirokimura
3
250
大規模サーバーレスAPIの堅牢性・信頼性設計 〜AWSのベストプラクティスから始まる現実的制約との向き合い方〜
maimyyym
6
3.9k
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
11
78k
これがLambdaレス時代のChatOpsだ!実例で学ぶAmazon Q Developerカスタムアクション活用法
iwamot
PRO
5
790
社内お問い合わせBotの仕組みと学び
nish01
1
530
The Cake Is a Lie... And So Is Your Login’s Accessibility
leichteckig
0
110
Featured
See All Featured
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.6k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
970
The Language of Interfaces
destraynor
162
25k
Automating Front-end Workflow
addyosmani
1371
200k
A designer walks into a library…
pauljervisheath
209
24k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
GitHub's CSS Performance
jonrohan
1032
470k
Done Done
chrislema
185
16k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Transcript
Vim 基本操作 蘇民弦 (Alex)
Vim 特色 • Linux 預設編輯器,一定要會基本的操作。 • 其他編輯器都要另外安裝。 • 高度客製化,一個會跟著自己成長的編輯器。 •
使用鍵盤控制一切操作,加速開發速度。 • 上手難度非常高。
Vim 常見的幾個模式 • 一般模式 (Normal mode):不能編輯文字,只能移動游標。 • 編輯模式 (Insert mode):可以自由編輯文字,移動游標。
• 可視模式 (Visual mode):選取區塊、複製貼上文字。 • 命令列模式 (Command-line mode):輸入指令、文字搜索。
Vim 基本指令 - 1 • vim ebird.r # 新增一個 ebird.r
檔案 • i # 進入 insert mode • esc # 回到 normal mode • v # 選取文字 (visual mode) • y # 儲存選取的文字 • p # 貼上選取的文字 • :wq # 儲存後退出
Vim 基本指令 - 2 • $ # 移動到最末端 • 0
# 移動到最前端 • > # 選取後多行縮排 • < # 反縮排 • d # 刪除 • dd # 刪除一整行
Vim 基本指令 - 3 • u # 回復到上一個動作 • /<字串>
# 向下搜尋字串,按 n 向下跳轉 • ?<字串> # 向上搜尋字串,按 N 向上跳轉 • :w # 儲存檔案 • gg # 跳到第一行 • G # 跳到最後一行 • 5G # 跳到第五行
Vim 配置 在家目錄的 ./~vimrc 檔案,如果沒發現的話就自 己新增一個,也可以用我自己寫的配置啦,或者參 考我以前寫的教學文章。
我的孩子長這樣