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.4k
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
2k
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.5k
This is the problem
nelstrom
1
250
Progressive enhancement - a barrier to progress?
nelstrom
1
610
Other Decks in Programming
See All in Programming
禅の心を手に入れよ
eltociear
1
350
ServerAction で Progressive Enhancement はどこまで頑張れるか? / progressive-enhancement-with-server-action
takefumiyoshii
6
420
StoreKit2によるiOSのアプリ内課金のリニューアル
kangnux
0
120
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
280
Fragment Composition of GraphQL
quramy
13
1.5k
SwiftUIで使いやすいToastの作り方 / How to build a Toast system which is easy to use in SwiftUI
lovee
3
170
Komplexe Oberflächen mit SVG und der Web Animation API
joergneumann
0
680
CREってこういうこと? 体験入社 - 提案資料 - / what-is-cre-trial-employment
shinden
1
520
Go製Webアプリケーションのエラーとの向き合い方大全、あるいはやっぱりスタックトレース欲しいやん / Kyoto.go #50
utgwkk
6
1.8k
Compose-View Interop in Practice (mDevCamp 2024)
stewemetal
0
170
2 週間で Twitter Bot を作ってみた
contour_gara
0
770
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
120
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
325
20k
Stop Working from a Prison Cell
hatefulcrawdad
267
19k
The Mythical Team-Month
searls
216
42k
Writing Fast Ruby
sferik
622
60k
Build The Right Thing And Hit Your Dates
maggiecrowley
25
2k
[RailsConf 2023] Rails as a piece of cake
palkan
27
4k
Documentation Writing (for coders)
carmenintech
60
4k
Thoughts on Productivity
jonyablonski
60
3.9k
No one is an island. Learnings from fostering a developers community.
thoeni
16
2.1k
Building Flexible Design Systems
yeseniaperezcruz
320
37k
10 Git Anti Patterns You Should be Aware of
lemiorhan
649
58k
Building an army of robots
kneath
300
41k
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