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
290
Jenkins Quick Guide
alexsu
0
130
Top IDEs & Code Editors for Data Science
alexsu
0
44
Shell scripting 基本教學
alexsu
0
41
Linux_Command-line_指令與基本操作.pdf
alexsu
0
87
Introduction to Git for Data Science
alexsu
0
280
Other Decks in Technology
See All in Technology
GitHub Issue Templates + Coding Agentで簡単みんなでIaC/Easy IaC for Everyone with GitHub Issue Templates + Coding Agent
aeonpeople
1
230
Azure Durable Functions で作った NL2SQL Agent の精度向上に取り組んだ話/jat08
thara0402
0
190
Webhook best practices for rock solid and resilient deployments
glaforge
1
290
AIと新時代を切り拓く。これからのSREとメルカリIBISの挑戦
0gm
0
1.7k
OCI Database Management サービス詳細
oracle4engineer
PRO
1
7.4k
FinTech SREのAWSサービス活用/Leveraging AWS Services in FinTech SRE
maaaato
0
130
AzureでのIaC - Bicep? Terraform? それ早く言ってよ会議
torumakabe
1
560
10Xにおける品質保証活動の全体像と改善 #no_more_wait_for_test
nihonbuson
PRO
2
290
GitLab Duo Agent Platform × AGENTS.md で実現するSpec-Driven Development / GitLab Duo Agent Platform × AGENTS.md
n11sh1
0
140
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
10k
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
3k
変化するコーディングエージェントとの現実的な付き合い方 〜Cursor安定択説と、ツールに依存しない「資産」〜
empitsu
4
1.4k
Featured
See All Featured
エンジニアに許された特別な時間の終わり
watany
106
230k
Why Our Code Smells
bkeepers
PRO
340
58k
What's in a price? How to price your products and services
michaelherold
247
13k
WENDY [Excerpt]
tessaabrams
9
36k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
How to make the Groovebox
asonas
2
1.9k
Fireside Chat
paigeccino
41
3.8k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
140
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
180
The Invisible Side of Design
smashingmag
302
51k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
82
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 檔案,如果沒發現的話就自 己新增一個,也可以用我自己寫的配置啦,或者參 考我以前寫的教學文章。
我的孩子長這樣