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
nelstrom
January 29, 2013
Programming
1
3.5k
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
10
2.1k
Modelling State Machines with Ragel
nelstrom
11
24k
Vimprint - A Vim Keystroke Parser
nelstrom
1
1.1k
Vim - Precision editing at the speed of thought
nelstrom
29
5.7k
This is the problem
nelstrom
1
250
Progressive enhancement - a barrier to progress?
nelstrom
1
620
Other Decks in Programming
See All in Programming
バグを見つけた?それAppleに直してもらおう!
uetyo
0
180
テスト自動化失敗から再挑戦しチームにオーナーシップを委譲した話/STAC2024 macho
ma_cho29
1
1.3k
[JAWS-UG横浜 #76] イケてるアップデートを宇宙いち早く紹介するよ!
maroon1st
0
500
EC2からECSへ 念願のコンテナ移行と巨大レガシーPHPアプリケーションの再構築
sumiyae
1
100
Beyond ORM
77web
8
1.1k
useSyncExternalStoreを使いまくる
ssssota
6
1.3k
競技プログラミングへのお誘い@阪大BOOSTセミナー
kotamanegi
0
360
rails stats で紐解く ANDPAD のイマを支える技術たち
andpad
1
300
KMP와 kotlinx.rpc로 서버와 클라이언트 동기화
kwakeuijin
0
170
From Translations to Multi Dimension Entities
alexanderschranz
2
140
各クラウドサービスにおける.NETの対応と見解
ymd65536
0
150
Jakarta EE meets AI
ivargrimstad
0
260
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.9k
Code Reviewing Like a Champion
maltzj
521
39k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.6k
Site-Speed That Sticks
csswizardry
2
190
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
810
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.6k
GitHub's CSS Performance
jonrohan
1031
460k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.5k
Building Adaptive Systems
keathley
38
2.3k
Being A Developer After 40
akosma
87
590k
Documentation Writing (for coders)
carmenintech
66
4.5k
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