Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Vim, vi, venci

Vim, vi, venci

Meu minicurso de Vim para os calouros do Instituto de Computação em 2010.

Douglas Kayama

March 17, 2010

Transcript

52 slides
  1. Exemplo (ed): a
 ed is the standard Unix text editor."

    This is line number two." ." 2i" ↵" . Fonte: Wikipedia
  2. Exemplo (ed): %l ed is the standard Unix text editor.$

    $ This is line number two.$ Fonte: Wikipedia
  3. Exemplo (ed): 3s/two/three/ ,l ed is the standard Unix text

    editor.$ $ This is line number three.$ Fonte: Wikipedia
  4. Exemplo (ed): 3s/two/three/ ,l ed is the standard Unix text

    editor.$ $ This is line number three.$ w text 65 Fonte: Wikipedia
  5. Exemplo (ed): 3s/two/three/" ,l" ed is the standard Unix text

    editor.$" $" This is line number three.$" w text" 65" q Fonte: Wikipedia
  6. No vim “:w ➠ write (salvar, lit. escrever) “:q ➠

    quit (sair) “:o ➠ open (abrir) “:new ➠ nova janela com o arquivo “:badd ➠ abre arquivo num novo buffer (mas não exibe imediatamente)
  7. No terminal “$ vim -p arquivo1 arquivo2 arquivo3 “$ vim

    -o arquivo1 arquivo2 arquivo3 “$ vim -O arquivo1 arquivo2 arquivo3
  8. No vim “gt ou gT ➠ navega entre as abas

    “c-w w ➠ navega entre janelas “:split e :vsplit ➠ abre janelas “:tabnew ➠ abre abas
  9. E agora? “$ vimtutor “:help intro (veja também :help) “http://www.viemu.com/a-why-vi-

    vim.html “http://www.viemu.com/ a_vi_vim_graphical_cheat_sheet_tu torial.html
  10. Agradecimentos “Aos alunos, pela presença. “Ao pessoal do GPSL, pela

    oportunidade. Especialmente ao Ivan, pelo apoio logístico e operacional. “À Jin (EC05), pelas sugestões. “Ao Roberto Honji (EC06), pelo material base. “E a todos os programadores anônimos ou não que criaram o Vim e todo o ambiente que propiciou isso (desde os primeiros computadores até a atualidade). Até ao pessoal que criou o Keynote, que é proprietário, mas é uma boa ferramenta de apresentação.

More Decks by Douglas Kayama

Other Decks in Technology