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
Search
Iuri Fernandes
February 22, 2013
Technology
1
140
Vim
Vim basics and plugins.
Iuri Fernandes
February 22, 2013
Tweet
Share
More Decks by Iuri Fernandes
See All by Iuri Fernandes
Comredis
iurifq
1
91
A Brief Introduction to Elixir
iurifq
0
89
Phoenix channels introduction
iurifq
0
110
Git - Dicas e boas práticas
iurifq
0
720
Other Decks in Technology
See All in Technology
2025/3/1 公共交通オープンデータデイ2025
morohoshi
0
110
QAエンジニアが スクラムマスターをすると いいなぁと思った話
____rina____
0
180
入門 PEAK Threat Hunting @SECCON
odorusatoshi
0
190
Qiita Organizationを導入したら、アウトプッターが爆増して会社がちょっと有名になった件
minorun365
PRO
1
350
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
19k
Two Blades, One Journey: Engineering While Managing
ohbarye
4
2.7k
データベースの負荷を紐解く/untangle-the-database-load
emiki
2
560
アジリティを高めるテストマネジメント #QiitaQualityForward
makky_tyuyan
1
470
プロダクト開発者目線での Entra ID 活用
sansantech
PRO
0
160
Snowflake ML モデルを dbt データパイプラインに組み込む
estie
0
120
プルリクエストレビューを終わらせるためのチーム体制 / The Team for Completing Pull Request Reviews
nekonenene
3
1.7k
RaspberryPi CM4(CM5も)面白いぞ!
nonnoise
1
180
Featured
See All Featured
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Designing on Purpose - Digital PM Summit 2013
jponch
117
7.1k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Thoughts on Productivity
jonyablonski
69
4.5k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.6k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
134
33k
A better future with KSS
kneath
238
17k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Large-scale JavaScript Application Architecture
addyosmani
511
110k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Optimizing for Happiness
mojombo
377
70k
How to train your dragon (web standard)
notwaldorf
91
5.9k
Transcript
VIM de D20 Iuri Fernandes
Histórico • Criado por Bram Moolenaar em 1991 • Inspirado
no editor vi(1976)
Vantagens x Desvantagens • Editor poderoso • Versatilidade • Grande
comunidade • Curva de aprendizado lenta • Configuração
Modos • Inserção • Comandos(Ex) • Visual
Pra lá e pra cá – Movimentação • h j
k l = ←↓↑→ • w = percorre texto palavra por palavra • f{char} = procura caractere char à direita na linha corrente • { = bloco anterior ; } = próximo bloco • :num = vai para a linha de número num • /{padrão} = busca
Combinação e repetição de comandos • {num}{comando} = repete num
vezes comando • {comando}{movimentação} = executa comando considerando movimentação • . = repete último comando
Plugins
E como instalo plugins? • No braço == baixa e
descompacta em .vim • Gerenciadores – Pathogen – Vundle – VAM
Abrindo arquivos like a boss! • kien/ctrlp.vim • ctrl+p! •
Abrir somente arquivos do repositório git • Abrir em nova aba, split vertical ou horizontal • Exemplos
Abrindo linhas, classes, etc. • Extensões do ctrlp • CtrlPTag
• CtrlPLine • CtrlPMRUFiles • CtrlModified (plugin) • Etc.
Arrudeio - VIM Surround • tpope/vim-surround • Lida com delimitadores
que circundam texto • Exemplos: – '', “” – {}, [], () – <p>tags</p>
Arrudeio - VIM Surround • Operações – Excluir – Incluir
– Modificar
Git - VIM Fugitive • tpope/vim-fugitive • Comandos – :Gstatus
– :Gblame – :Gdiff – :Gcommit – :Gwrite – :Gread – :Git {qualquer comando do git} – :Ggrep {padrão}
Decorar e digitar todo comando? • NÃO! • Keystrokes definidos
pelo usuário no .vimrc • Exemplo
Desfazer, modificar … FUU!
Desfazer, modificar … FUU! • sjl/gundo.vim • Exemplo
Aqui tem refactor! • ecomba/vim-ruby-refactoring