Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Vim 手指健康操
Search
dv
October 18, 2014
Programming
950
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Vim 手指健康操
dv
October 18, 2014
More Decks by dv
See All by dv
Python module in Rust
wdv4758h
0
210
First try for CAS, SymPy with codegen
wdv4758h
0
730
Android Memory Leak Profiling - VMFive
wdv4758h
0
320
CPython's bug in feature that nobody uses
wdv4758h
0
140
FreeBSD ports system
wdv4758h
0
160
Other Decks in Programming
See All in Programming
ソフトウェアラスタライザ
fadis
1
800
『寄り添うラジオ』をAIで作る 体験価値から逆算した、会話しないUXと品質設計
theoriatec2024
3
140
自分的「カンファレンスの楽しみ方」
syumai
0
200
Omarchy Tokyo やると聞いて UMPC 買ってセットアップしてきた
mtsmfm
0
110
Foundry Localでエージェント開発
seosoft
0
160
MIZARU@SPAJAM2026 第二回予選
1901drama
0
110
新人はどこまで自力でやり、どこからAIに頼るべきか/エンジニア育成に向き合う_先輩たちの悩みと知見共有会
toppan_digital_dev
1
580
LLMは4年分のCompose移行を再現できるのか?実プロダクト279件のXMLで探る自動化の境界線
makun
0
450
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
230
コンパウンドプロダクト開発のためのローカルプロセスマネージャー再発明 #layerxgo
izumin5210
0
660
初心者DevRelとして参加者だった私が、DevRel Talks!#2に登壇するまでにしてきたこと
sokohirai
0
360
XHTMLが残したもの
yosuke_furukawa
PRO
2
470
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
410
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
520
Tell your own story through comics
letsgokoyo
1
1.1k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Between Models and Reality
mayunak
4
450
WCS-LA-2024
lcolladotor
0
820
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
340
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
270
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
ラッコキーワード サービス紹介資料
rakko
1
4.8M
Transcript
None
About me • 依然是個學生 • 爬說語使用者 • Vim 成癮 •
Arch Linux user
Vim ? 強力的文字編輯器 ! 可高度的客制化 ! Vim 在手 希望無窮 (?
Install • Linux ◦ 看你 distribution 有沒有內建 ◦ 沒有就用 package
manager 安裝 • Mac ◦ MacVim • Windows ◦ download here ◦ 或是用 Cygwin
Open
大家可以開 vimtutor 練習
Basic
Mode (Vim 有許多模式可以使用) 常用的三種 : • 一般模式(Normal) • 編輯模式(Insert) •
指令模式
你現在所在的是 一般模式 (剛進來啊)
回到一般模式 (萬用)
進入 i nsert mode
a ppend (在 normal mode 按) 會把字加在 後面一個位置
現在你可以開始亂打了
回到一般模式 我們來看看重要的 移動
← ↓ ↑ → h j k l
None
數字 + 操作 一次變多次
3 h →向左三次 100 h →向左一百次 10000 h →向左一萬次 ...
快速跳到 檔案開頭 goto go gogo ~
快速跳到 某行 數字 gg 到第3行 : 3gg
快速跳到 檔案結尾 G 我變大囉
大小寫版本 通常是 類似動作
刪刪刪 刪一個字 x 我是小 x 喔
刪刪刪 刪前一個字 X 我是大 X 喔
刪刪刪 刪一整行 delete d
進入指令 mode ESC 先回 normal : 用冒號正試進入
存檔 :w rite 離開 :quit 存檔離開 :wq 不存檔離開 :q!
上一步 undo 下一步 Ctrl + redo
複製 yank 貼上 paste
複製 一個字 yank letter
複製 一行 yank y
以上你已經有了 基本動作
More Powerful
Big Little insert 寫到目前位置 append 寫到目前位置之後 open blank line 寫到下行
paste 貼在後面 Insert 寫到行首 Append 寫到行尾 Open blank line 寫到上行 Paste 貼在前面
更多移動 w 往後一個單字 b 往前一個單字 e 單字結尾
更多移動 f 往右找 F 往左找
搜尋 / 支援 regular expression
取代 r 接著打上要取代的字
取代 R 進入 replace mode 接著打的字都會直接取代
visual mode v 我是小寫 一般反白 V 我是大寫 反白一整行 Ctrl +
v 我是小寫 方塊反白
visual mode o 我是小寫 對角調整固定點 O 我是大寫 左右調整固定點
visual mode 選完之後可以搭配其他操作 例如: delete, yank
翻翻翻 翻半頁 Ctrl + down Ctrl + up
翻翻翻 翻半頁 Ctrl + forward Ctrl + backward
刪除 delete in 括弧/引號 中的文字 ( [ { " '
依需求選一個使用 更改 change in
刪除 delete all 括弧/引號 中的文字 ( [ { " '
包含 括弧/引號 依需求選一個使用 更改 change all
Combo 起手式 delete 刪除 change 更改 yank 複製 搭配 w
word G 檔案尾巴 gg 檔案開頭 $ 行尾 0 行首 ^ 有字行首
雙重起手式 通常代表 用在 一整行
More and More
更深入 更多 Vim 內建操作 個人化 vimrc vim plugin key maps
...
Thanks