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
90
A Brief Introduction to Elixir
iurifq
0
88
Phoenix channels introduction
iurifq
0
110
Git - Dicas e boas práticas
iurifq
0
720
Other Decks in Technology
See All in Technology
株式会社EventHub・エンジニア採用資料
eventhub
0
4.2k
第13回 Data-Centric AI勉強会, 画像認識におけるData-centric AI
ksaito_osx
0
360
Building Products in the LLM Era
ymatsuwitter
10
4.4k
管理者しか知らないOutlookの裏側のAIを覗く#AzureTravelers
hirotomotaguchi
1
240
データ資産をシームレスに伝達するためのイベント駆動型アーキテクチャ
kakehashi
PRO
2
230
技術負債の「予兆検知」と「状況異変」のススメ / Technology Dept
i35_267
1
1k
データ基盤の成長を加速させる:アイスタイルにおける挑戦と教訓
tsuda7
3
650
5分で紹介する生成AIエージェントとAmazon Bedrock Agents / 5-minutes introduction to generative AI agents and Amazon Bedrock Agents
hideakiaoyagi
0
220
君も受託系GISエンジニアにならないか
sudataka
1
370
開発スピードは上がっている…品質はどうする? スピードと品質を両立させるためのプロダクト開発の進め方とは #DevSumi #DevSumiB / Agile And Quality
nihonbuson
1
1.3k
現場の種を事業の芽にする - エンジニア主導のイノベーションを事業戦略に装着する方法 -
kzkmaeda
2
1.5k
PL900試験から学ぶ Power Platform 基礎知識講座
kumikeyy
0
110
Featured
See All Featured
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.4k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Practical Orchestrator
shlominoach
186
10k
A better future with KSS
kneath
238
17k
Product Roadmaps are Hard
iamctodd
PRO
50
11k
Done Done
chrislema
182
16k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
630
Gamification - CAS2011
davidbonilla
80
5.1k
Statistics for Hackers
jakevdp
797
220k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.1k
Automating Front-end Workflow
addyosmani
1367
200k
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