User login

code snippet

Vim snippets with SnipMate for PHP and Drupal

See also: http://nvie.com/posts/how-i-boosted-my-vim/


git clone git://github.com/msanders/snipmate.vim.git
cd snipmate.vim
cp -R * ~/.vim

vi ~/.virmrc (v ~/customhome/.vimrc-agaric for me.)

:filetype plugin on
:helptags ~/.vim/doc

Display the word count of a piece of content

In the most useful comment on a thread of useful comments, Greg Harvey describes how to get the word count for a node in the template level: access just the body portion of the content variable for a node in and count the words in template.php, then output this variable in node.tpl.php.

Syndicate content