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
94
A Brief Introduction to Elixir
iurifq
0
92
Phoenix channels introduction
iurifq
0
110
Git - Dicas e boas práticas
iurifq
0
730
Other Decks in Technology
See All in Technology
第9回情シス転職ミートアップ_テックタッチ株式会社
forester3003
0
240
Snowflake Summit 2025全体振り返り / Snowflake Summit 2025 Overall Review
mtpooh
2
400
製造業からパッケージ製品まで、あらゆる領域をカバー!生成AIを利用したテストシナリオ生成 / 20250627 Suguru Ishii
shift_evolve
PRO
1
140
生成AI時代の開発組織・技術・プロセス 〜 ログラスの挑戦と考察 〜
itohiro73
1
240
より良いプロダクトの開発を目指して - 情報を中心としたプロダクト開発 #phpcon #phpcon2025
bengo4com
1
3.1k
【TiDB GAME DAY 2025】Shadowverse: Worlds Beyond にみる TiDB 活用術
cygames
0
1.1k
Postman AI エージェントビルダー最新情報
nagix
0
110
低レイヤを知りたいPHPerのためのCコンパイラ作成入門 完全版 / Building a C Compiler for PHPers Who Want to Dive into Low-Level Programming - Expanded
tomzoh
4
3.2k
Windows 11 で AWS Documentation MCP Server 接続実践/practical-aws-documentation-mcp-server-connection-on-windows-11
emiki
0
980
Snowflake Summit 2025 データエンジニアリング関連新機能紹介 / Snowflake Summit 2025 What's New about Data Engineering
tiltmax3
0
310
AIとともに進化するエンジニアリング / Engineering-Evolving-with-AI_final.pdf
lycorptech_jp
PRO
0
100
Model Mondays S2E02: Model Context Protocol
nitya
0
220
Featured
See All Featured
Making Projects Easy
brettharned
116
6.3k
Docker and Python
trallard
44
3.4k
GitHub's CSS Performance
jonrohan
1031
460k
Scaling GitHub
holman
459
140k
The World Runs on Bad Software
bkeepers
PRO
69
11k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
Speed Design
sergeychernyshev
32
1k
A Tale of Four Properties
chriscoyier
160
23k
VelocityConf: Rendering Performance Case Studies
addyosmani
330
24k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
281
13k
Designing for Performance
lara
609
69k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
22k
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