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
91
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
200
Jenkins Quick Guide
alexsu
0
89
Top IDEs & Code Editors for Data Science
alexsu
0
34
Shell scripting 基本教學
alexsu
0
32
Linux_Command-line_指令與基本操作.pdf
alexsu
0
73
Introduction to Git for Data Science
alexsu
0
230
Other Decks in Technology
See All in Technology
Azure犬駆動開発の記録/GlobalAzureFukuoka2024_20240420
nina01
1
240
Google Cloud Next '24 Recap(Cloud Run/k8s)
mokocm
0
320
Azure Container Apps + Bicep 〜 こんな感じで運用しています
kaz29
3
610
GrafanaMeetup_AmazonManagedGrafanaのアクセス制御機能とマルチテナント環境下でのアクセス制御について
daitak
0
390
Android Target SDK 35 (Android 15) 対応の概要
akkie76
0
150
開発生産性大幅アップ!Postman VS Code拡張機能
nagix
3
630
競技としてのKaggle、役に立つKaggle
yu4u
6
2.3k
Microsoft for Startups Founders Hub_20240429 update
daikikanemitsu
1
2.4k
Babylon.jsと色々なものを組み合わせる:ブラウザのAPIやガジェットや2D描画ライブラリなど / Babylon.js 勉強会 vol.3
you
PRO
0
160
エンジニア候補者向け資料2024.04.24.pdf
macloud
0
3.3k
AWS学習者向けにAzureの解説スライドを作成した話
handy
3
180
FrontDoorとWebAppsを組み合わせた際のリダイレクト処理の注意点
kenichirokimura
1
710
Featured
See All Featured
Practical Orchestrator
shlominoach
183
9.7k
From Idea to $5000 a Month in 5 Months
shpigford
378
45k
Designing with Data
zakiwarfel
96
4.8k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
126
32k
The Cost Of JavaScript in 2023
addyosmani
20
3.9k
Building Your Own Lightsaber
phodgson
100
5.7k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
222
21k
Facilitating Awesome Meetings
lara
43
5.6k
Happy Clients
brianwarren
92
6.4k
Fantastic passwords and where to find them - at NoRuKo
philnash
38
2.5k
How to Ace a Technical Interview
jacobian
273
22k
Designing for Performance
lara
602
67k
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 檔案,如果沒發現的話就自 己新增一個,也可以用我自己寫的配置啦,或者參 考我以前寫的教學文章。
我的孩子長這樣