Jeroen Budts wrote:
Hi,

I'm looking for the quickest method to yank an entire (php) function when the cursor is somewhere in the first line of the function definition like this (| = cursor):

fun|ction foobar() {
  if (true) {
    return "not false :)";
  }
}
[snip]

If you use syntax folding...  (put into  ~/.vim/ftplugin/php.vim)

  let php_folding= 1
  set fdm=syntax

then a simple Y with the cursor atop a folded function will yank it.

Regards,
Chip Campbell

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to