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
Google Play Consoleデベロッパー アカウントの確認 / Verifying your Play Console developer account
kubode
0
310
Competitionsだけじゃない! Kaggle Notebooks Grandmasterのすすめ
corochann
2
940
Universal Linksの実装方法と陥りがちな罠
kaitokudou
1
140
Honoの来た道とこれから
yusukebe
14
2.2k
Повторное использование кода в ML: почему ML-пайплайны могут помочь?
lamodatech
0
400
Quarto Clean Theme
nicetak
0
220
組織に自動テストを書く文化を根付かせる戦略(2024秋版) / Building Automated Test Culture 2024 Autumn Edition
twada
PRO
9
3.6k
2024-10-01 dev2next - Observability for Modern JVM Applications
jonatan_ivanov
1
140
Vue SFCのtemplateでTypeScriptの型を活用しよう
tsukkee
3
920
モジュラモノリス、その前に / Modular monolith, before that
euglena1215
8
750
個人開発で使ってるやつを紹介する回
yohfee
1
730
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
1.2k
Featured
See All Featured
Become a Pro
speakerdeck
PRO
24
4.9k
Side Projects
sachag
452
42k
Typedesign – Prime Four
hannesfritz
39
2.4k
Making the Leap to Tech Lead
cromwellryan
131
8.9k
Building an army of robots
kneath
302
42k
Docker and Python
trallard
40
3k
10 Git Anti Patterns You Should be Aware of
lemiorhan
653
59k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
26
710
Statistics for Hackers
jakevdp
796
220k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
Learning to Love Humans: Emotional Interface Design
aarron
272
40k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9k
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