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
Vim Tricks Español
Search
Max Holzheu
February 13, 2018
Programming
0
30
Vim Tricks Español
A collection of Vim tricks, some very basic, and some very advanced.
Max Holzheu
February 13, 2018
Tweet
Share
More Decks by Max Holzheu
See All by Max Holzheu
Vim Tricks
maxcodes
2
48
Other Decks in Programming
See All in Programming
RailsConf 2024: Riffing on Rails: sketch your way to better designed code
kaspth
1
210
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
220
Using "modern" Ruby to build a better, faster Homebrew
mikemcquaid
2
240
株式会社ゼネテック
genetec
0
120
Effectで作る堅牢でスケーラブルなAPIゲートウェイ / Robust and Scalable API Gateway Built on Effect
yasaichi
7
1.2k
Open standards for building event-driven applications in the cloud
meteatamel
0
230
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
1
120
JS RPCを理解する
yusukebe
5
260
slow types ってなんだろう?
karad
0
210
TypeScriptで使いやすいOpenAPIの書き方
yukimochi_dwango
1
730
Namespace, What and Why
tagomoris
3
670
Productivity is Messing Around and Having Fun
hollycummins
1
170
Featured
See All Featured
What's in a price? How to price your products and services
michaelherold
238
11k
Design by the Numbers
sachag
274
18k
Teambox: Starting and Learning
jrom
128
8.4k
A designer walks into a library…
pauljervisheath
201
23k
The Art of Programming - Codeland 2020
erikaheidi
43
12k
Stop Working from a Prison Cell
hatefulcrawdad
266
19k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
1
120
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
126
32k
Visualization
eitanlees
137
14k
How GitHub (no longer) Works
holman
305
140k
Practical Orchestrator
shlominoach
183
9.8k
Happy Clients
brianwarren
92
6.4k
Transcript
Tricks Max Holzheu
@maxholzheu Slides will be tweeted out
Go to the end of the line + enter Insert
mode Shift + A @maxholzheu
@maxholzheu
@maxholzheu
Go to the beginning of the line + enter Insert
mode Shift + I @maxholzheu
@maxholzheu
@maxholzheu
Sets the line numbers to be relative to the cursor’s
position :set relativenumber @maxholzheu
@maxholzheu
@maxholzheu
Repeat your last command Ctrl + . @maxholzheu
None
@maxholzheu
@maxholzheu
13j @maxholzheu
@maxholzheu
@maxholzheu
@maxholzheu
@maxholzheu
@maxholzheu
@maxholzheu
@maxholzheu
@maxholzheu
None
Moving on…
Join lines together J @maxholzheu
@maxholzheu
@maxholzheu
Open a URL gx @maxholzheu
Abbreviate long stuff Best use: Prevent typos :abbr @maxholzheu
# .vimrc abbr teh the abbr funciton function @maxholzheu
None
None
Case-Aware Substitution With vim-abolish :%S/quote/phrase/g quote Quote qUOte QUOTE phrase
Phrase qUOte PHRASE @maxholzheu
@maxholzheu
@maxholzheu
@maxholzheu
@maxholzheu
Create an argument list (buffers) :args @maxholzheu
:args app/models/quote.rb app/models/book.rb @maxholzheu
:args `find app -name '*.rb'` @maxholzheu
Execute a command on every buffer on the list :argdo
@maxholzheu
:argdo :set filetype=ruby @maxholzheu
None
:args `find app -name '*.rb'` @maxholzheu
:argdo :%S/quote/phrase/g @maxholzheu
@maxholzheu
@maxholzheu
@maxholzheu