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.6k
This is the problem
nelstrom
1
250
Progressive enhancement - a barrier to progress?
nelstrom
1
620
Other Decks in Programming
See All in Programming
Less waste, more joy, and a lot more green: How Quarkus makes Java better
hollycummins
0
100
AI時代におけるSRE、 あるいはエンジニアの生存戦略
pyama86
6
1.2k
Ethereum_.pdf
nekomatu
0
470
Realtime API 入門
riofujimon
0
150
Pinia Colada が実現するスマートな非同期処理
naokihaba
4
230
RubyLSPのマルチバイト文字対応
notfounds
0
120
Amazon Bedrock Agentsを用いてアプリ開発してみた!
har1101
0
340
flutterkaigi_2024.pdf
kyoheig3
0
150
cmp.Or に感動した
otakakot
3
210
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
900
よくできたテンプレート言語として TypeScript + JSX を利用する試み / Using TypeScript + JSX outside of Web Frontend #TSKaigiKansai
izumin5210
6
1.8k
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
240
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
Ruby is Unlike a Banana
tanoku
97
11k
The Art of Programming - Codeland 2020
erikaheidi
52
13k
We Have a Design System, Now What?
morganepeng
50
7.2k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Writing Fast Ruby
sferik
627
61k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
Automating Front-end Workflow
addyosmani
1366
200k
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