Community Documentation

Screenshots

Last updated January 17, 2012. Created by benjifisher on January 17, 2012.
Log in to edit this page.

Syntax highlighting

This screenshot shows custom highlighting of documentation blocks and .info files using the delek color scheme.

screenshot showing syntax highlighting

Plugins

Note that the lower central window is on line 113, column 38. In other words, the cursor is on the text drupal_get_path. I used <C-W>] to open the upper window on the definition of drupal_get_path(). See the description of Tag searches.

The left and right windows show the use of two Recommended plugins: the NERDTRee directory brower and the Tagbar tag browser. The current directory is for the Ctools module. Tagbar always displays tage for the currently avtive window: in this case, the core
includes/common.inc.

screenshot showing vim with split windows and the NERDTree and Tagbar plugins

Automatic completion

After entering the text drupal_se, I triggered completion with <C-X><C-O>. Vim offers a menu of choices, and opens a preview window showing the declaration of the current selection. For more details, see the page on Insert-mode features.

screenshot showing PHP omnicompletion

Syntax checking

This screenshot shows the Syntastic plugin highlighting syntax warnings and errors. The lower window lists all the errors. See the Syntastic entry on the Recommended plugins page.

screenshot showing syntax checking

About this page

Drupal version
Drupal 6.x, Drupal 7.x, Drupal 8.x
Audience
Designers/themers, Programmers
Keywords
screenshot, text editor, vim, vimrc

Develop for Drupal

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here