VIM and Drupal 8 – Drupal Madrid - January 2016 – Background



VIM and Drupal 8 – Drupal Madrid - January 2016 – Background

0 0


vim-drupal8

Vim & Drupal 8

On Github juampynr / vim-drupal8

VIM and Drupal 8

Drupal Madrid - January 2016

Juampy NR - @juampynr

  Juampy NR - @juampynr Senior Developer

Index

Background Setup Basic editing Directory browsing Searching Navigating through code Window management Debugging

Background

Why did I change from this… :-D

Into this? :-S

Because of this? ;-)

Basic editing

Setup

I use a slightly modified version of the spf13 distribution.

              
sudo apt-get -y install vim vim-gnome exuberant-ctags
cp ~/projects/Ubuntu-Installer/.ctags ~/
curl http://j.mp/spf13-vim3 -L -o - | sh
cp ~/projects/Ubuntu-Installer/.vimrc.local ~/
cp ~/projects/Ubuntu-Installer/.vimrc.before.local ~/
              
            

Source: Ubuntu installer script.

Directory browsing (NERDTree plugin)

Searching (grep + CtrlP + tags)

Navigating through code (Tagbar plugin)

Window management (tabs and buffers)

Debugging a request(Vdebug plugin)

Debugging a script(Vdebug plugin + Drush)

How to start using VIM?

Links

  • Type vimtutor and follow the tutorial for basic usage.
  • Install the spf13 distribution.
  • Take your time to read the docs of each plugin.
  • Test your skills and learn by playing VIMGolf.
  • Get the latest book: Practical VIM. https://pragprog.com/book/dnvim/practical-vim

Thanks! Questions?

@juampynr

Want to work at Lullabot? Then talk to me.

VIM and Drupal 8 Drupal Madrid - January 2016 Juampy NR - @juampynr