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

Using VIM for PHP/Symfony development

Avatar for Carlos Mafla Carlos Mafla
November 25, 2017

Using VIM for PHP/Symfony development

VIM can be a great editor for PHP/Symfony development, after using VIM for many years this talk shows why VIM can be a great alternative for development.

https://github.com/gigo6000/dotfiles

Avatar for Carlos Mafla

Carlos Mafla

November 25, 2017

More Decks by Carlos Mafla

Other Decks in Programming

Transcript

  1. Using VIM for PHP Development And other languages… Carlos Mafla

    github.com/gigo600 @gigo6000 meetup.com/phpcali
  2. About Me • Web Developer (Backend, DevOps, Frontend developer, etc

    ) • 10+ years of working with PHP • 5+ years of working with Symfony (remember Askeet?) • Scalable Path • @gigo6000 (Twitter, Instagram, Github)
  3. Why use VIM? • Very fast • Available on every

    server you SSH • Highly customizable • Productivity
  4. Modes • I - INSERT • N - NORMAL •

    V - VISUAL • others …
  5. Basic moves • H- Move cursor left • J -

    Move cursor down • K- Move cursor up • L- Move cursor right
  6. Nice moves • gg - beginning of file • G-

    End of file • w - Beginnig of next word • A - Go to end of line (insert) • / - Search string
  7. Copy and Paste • v and shift + v -

    select • y - copy • x - cut • p - paste
  8. Plugins • Vundle - Plugin manager • NERDTree - File

    tree viewer • vim-colorschemes - Color schemes • vim-jinja - Twig syntax • vim-surround - Easily surround things • ctrlp.vim - Fuzzy search • vim-airline - Pretty status bar • ultisnips - Code snippets
  9. Dotfiles • Reuse and share your VIM config • Some

    examples: • https://github.com/paulirish/dotfiles • https://github.com/mathiasbynens/dotfiles • https://github.com/colbycheeze/dotfiles • https://github.com/gigo6000/dotfiles
  10. Other ways to start learning VIM • Vim Adventures Game:

    http://vim-adventures.com/ • Vimium Chrome extension: https://vimium.github.io/