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
100
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
270
Jenkins Quick Guide
alexsu
0
130
Top IDEs & Code Editors for Data Science
alexsu
0
40
Shell scripting 基本教學
alexsu
0
36
Linux_Command-line_指令與基本操作.pdf
alexsu
0
82
Introduction to Git for Data Science
alexsu
0
280
Other Decks in Technology
See All in Technology
Claude Code Actionを使ったコード品質改善の取り組み
potix2
PRO
6
2.2k
BigQuery Remote FunctionでLooker Studioをインタラクティブ化
cuebic9bic
3
280
BrainPadプログラミングコンテスト記念LT会2025_社内イベント&問題解説
brainpadpr
1
160
Prox Industries株式会社 会社紹介資料
proxindustries
0
290
データプラットフォーム技術におけるメダリオンアーキテクチャという考え方/DataPlatformWithMedallionArchitecture
smdmts
5
630
「Chatwork」の認証基盤の移行とログ活用によるプロダクト改善
kubell_hr
1
150
強化されたAmazon Location Serviceによる新機能と開発者体験
dayjournal
2
210
地図も、未来も、オープンに。 〜OSGeo.JPとFOSS4Gのご紹介〜
wata909
0
110
HiMoR: Monocular Deformable Gaussian Reconstruction with Hierarchical Motion Representation
spatial_ai_network
0
110
Node-RED × MCP 勉強会 vol.1
1ftseabass
PRO
0
140
Oracle Audit Vault and Database Firewall 20 概要
oracle4engineer
PRO
3
1.7k
AWS テクニカルサポートとエンドカスタマーの中間地点から見えるより良いサポートの活用方法
kazzpapa3
2
540
Featured
See All Featured
Speed Design
sergeychernyshev
32
1k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
48
2.8k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
20k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.4k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.7k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
930
Code Review Best Practice
trishagee
68
18k
The Straight Up "How To Draw Better" Workshop
denniskardys
234
140k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.8k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.4k
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 檔案,如果沒發現的話就自 己新增一個,也可以用我自己寫的配置啦,或者參 考我以前寫的教學文章。
我的孩子長這樣