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
Search
Max Holzheu
February 23, 2016
Programming
2
49
Vim Tricks
Austin on Rails talk 02/23/15
Max Holzheu
February 23, 2016
Tweet
Share
More Decks by Max Holzheu
See All by Max Holzheu
Vim Tricks Español
maxcodes
0
33
Other Decks in Programming
See All in Programming
さいきょうのレイヤードアーキテクチャについて考えてみた
yahiru
3
730
Writing documentation can be fun with plugin system
okuramasafumi
0
120
Amazon S3 TablesとAmazon S3 Metadataを触ってみた / 20250201-jawsug-tochigi-s3tables-s3metadata
kasacchiful
0
100
一休.com のログイン体験を支える技術 〜Web Components x Vue.js 活用事例と最適化について〜
atsumim
0
110
第3回 Snowflake 中部ユーザ会- dbt × Snowflake ハンズオン
hoto17296
4
360
ARA Ansible for the teams
kksat
0
150
Grafana Loki によるサーバログのコスト削減
mot_techtalk
1
110
なぜイベント駆動が必要なのか - CQRS/ESで解く複雑系システムの課題 -
j5ik2o
7
2.5k
ペアーズでの、Langfuseを中心とした評価ドリブンなリリースサイクルのご紹介
fukubaka0825
2
300
負債になりにくいCSSをデザイナとつくるには?
fsubal
9
2.3k
【PHP】破壊的バージョンアップと戦った話〜決断と説得
satoshi256kbyte
0
120
GAEログのコスト削減
mot_techtalk
0
110
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
A designer walks into a library…
pauljervisheath
205
24k
For a Future-Friendly Web
brad_frost
176
9.5k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
Optimizing for Happiness
mojombo
376
70k
The Pragmatic Product Professional
lauravandoore
32
6.4k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.4k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Building Your Own Lightsaber
phodgson
104
6.2k
Rails Girls Zürich Keynote
gr2m
94
13k
The Cult of Friendly URLs
andyhume
78
6.2k
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