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
51
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
34
Other Decks in Programming
See All in Programming
ThorVG Viewer In VS Code
nors
0
770
Data-Centric Kaggle
isax1015
2
770
今から始めるClaude Code超入門
448jp
8
8.6k
Patterns of Patterns
denyspoltorak
0
1.4k
「ブロックテーマでは再現できない」は本当か?
inc2734
0
930
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.8k
Basic Architectures
denyspoltorak
0
660
CSC307 Lecture 09
javiergs
PRO
1
830
Oxlint JS plugins
kazupon
1
860
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
190
Package Management Learnings from Homebrew
mikemcquaid
0
210
2026年 エンジニアリング自己学習法
yumechi
0
130
Featured
See All Featured
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.7k
Claude Code のすすめ
schroneko
67
210k
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
Visualization
eitanlees
150
17k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
110
Git: the NoSQL Database
bkeepers
PRO
432
66k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
130
Raft: Consensus for Rubyists
vanstee
141
7.3k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
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