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
When & why you should stay out of visual mode
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
nelstrom
January 29, 2013
Programming
3.8k
1
Share
When & why you should stay out of visual mode
nelstrom
January 29, 2013
More Decks by nelstrom
See All by nelstrom
Follow my leader
nelstrom
10
2.3k
Modelling State Machines with Ragel
nelstrom
11
25k
Vimprint - A Vim Keystroke Parser
nelstrom
1
1.2k
Vim - Precision editing at the speed of thought
nelstrom
29
5.9k
This is the problem
nelstrom
1
280
Progressive enhancement - a barrier to progress?
nelstrom
1
640
Other Decks in Programming
See All in Programming
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
0
150
AI時代のエンジニアリングの原則 / Engineering Principles in the AI Era
haru860
0
280
「速くなった気がする」をデータで疑う
senleaf24
0
180
VueエンジニアがReactを触って感じた_設計の違い
koukimiura
0
180
CDK Deployのための ”反響定位”
watany
4
760
CursorとClaudeCodeとCodexとOpenCodeを実際に比較してみた
terisuke
1
460
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
4
3k
Alternatives to JPA 2026
debop
0
110
「Linuxサーバー構築標準教科書」を読んでみた #ツナギメオフライン.7
akase244
0
1.4k
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
2
360
ファインチューニングせずメインコンペを解く方法
pokutuna
0
310
AI時代のPhpStorm最新事情 #phpcon_odawara
yusuke
0
190
Featured
See All Featured
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
190
Measuring & Analyzing Core Web Vitals
bluesmoon
9
810
エンジニアに許された特別な時間の終わり
watany
106
240k
4 Signs Your Business is Dying
shpigford
187
22k
The SEO Collaboration Effect
kristinabergwall1
0
420
Designing for Performance
lara
611
70k
Optimizing for Happiness
mojombo
378
71k
Designing Experiences People Love
moore
143
24k
A Soul's Torment
seathinner
6
2.7k
From π to Pie charts
rasagy
0
160
Docker and Python
trallard
47
3.8k
Testing 201, or: Great Expectations
jmmastey
46
8.1k
Transcript
29th January, 2013 Drew Neil WHEN & WHY YOU SHOULD
STAY OUT OF VISUAL MODE
v{motion}{command} VISUAL OPERATIONS (Vim at it’s most user-friendly)
v{motion}{command} VISUAL OPERATIONS (Vim at it’s most user-friendly) v engage
visual mode
v{motion}{command} VISUAL OPERATIONS (Vim at it’s most user-friendly) v engage
visual mode {motion} select the range of text to act upon
v{motion}{command} VISUAL OPERATIONS (Vim at it’s most user-friendly) v engage
visual mode {motion} select the range of text to act upon {command} execute
{command}{motion} NORMAL OPERATIONS (the old-school vi way)
{command}{motion} NORMAL OPERATIONS (the old-school vi way) {command} execute operation
{command}{motion} NORMAL OPERATIONS (the old-school vi way) {command} execute operation
{motion} over the specified range
COMMAND EFFECT HELP {Visual}u Make highlighted text lowercase :help v_u
gu{motion} Make {motion} text lowercase :help gu DOWNCASING
gu it it u v . downcase next 3 characters
downcase inner tag VISUAL OPERATOR OPERATOR- PENDING Vs.
COMMAND EFFECT HELP {Visual}gw Format the highlighted text :help v_gw
gw{motion} Format the lines that {motion} moves over :help gw HARD-WRAPPING
gq ip ip gq v . reformat next 4 lines
reformat inner paragraph VISUAL OPERATOR OPERATOR- PENDING Vs.
FOR REPETITIVE WORK (where dot is your friend) . PREFER
NORMAL OPERATIONS over VISUAL
Operator, the true power of Vim by Kana Natsuno http://whileimautomaton.net/2008/11/vimm3/operator
Practical Vim, Tip 23 Prefer operators to Visual commands where possible http://pragprog.com/book/dnvim/practical-vim FURTHER READING