Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
When & why you should stay out of visual mode
nelstrom
January 29, 2013
Programming
1
3.1k
When & why you should stay out of visual mode
nelstrom
January 29, 2013
Tweet
Share
More Decks by nelstrom
See All by nelstrom
Follow my leader
nelstrom
9
1.7k
Modelling State Machines with Ragel
nelstrom
11
24k
Vimprint - A Vim Keystroke Parser
nelstrom
1
870
Vim - Precision editing at the speed of thought
nelstrom
29
5k
This is the problem
nelstrom
1
240
Progressive enhancement - a barrier to progress?
nelstrom
1
580
Other Decks in Programming
See All in Programming
Oracle REST Data Service: APEX Office Hours
thatjeffsmith
0
710
Cybozu GoogleI/O 2022 LT会 - Input for all screens
jaewgwon
0
290
Why Airflow? & What's new in Airflow 2.3?
kaxil
0
110
はてなフォトライフをECSに移行した話 / Hatena Engineer Seminar #20
cohalz
1
820
IE Graduation Certificate
jxck
6
4.7k
React NativeアプリにStorybook CSF3.0を導入しよう
texmeijin
0
160
VisualProgramming_GoogleHome_LINE
nearmugi
1
140
言語処理ライブラリ開発における失敗談 / NLPHacks
taishii
1
430
JSのウェブフレームワークで高速なルーターを実装する方法
usualoma
1
1.7k
GitHubのユーザー名を変更した後のあれこれ
tahia910
0
120
ISUCON12 事前講習
rosylilly
3
4.3k
エンジニアによる事業指標計測のススメ
doyaaaaaken
1
180
Featured
See All Featured
Making Projects Easy
brettharned
98
4.3k
What the flash - Photography Introduction
edds
62
10k
Fontdeck: Realign not Redesign
paulrobertlloyd
73
4.1k
Designing on Purpose - Digital PM Summit 2013
jponch
106
5.6k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
236
1M
Mobile First: as difficult as doing things right
swwweet
213
7.5k
Practical Orchestrator
shlominoach
178
8.6k
Art Directing for the Web. Five minutes with CSS Template Areas
malarkey
196
9.4k
Building Better People: How to give real-time feedback that sticks.
wjessup
344
17k
KATA
mclloyd
7
8.7k
Three Pipe Problems
jasonvnalue
89
8.7k
Making the Leap to Tech Lead
cromwellryan
113
7.4k
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