* cga2000 on Monday, February 26, 2007 at 11:57:39 -0500: > On Sun, Feb 25, 2007 at 07:57:39PM EST, A.J.Mechelynck wrote: >> - To change (once) to the dir of the current file >> >> :cd %:p:h > > Nice. > > But I'm not going to remember it until I understand it. > > I scoured the :help files but couldn't find and explanation of the > syntax. > > :p is short for :print and :h is help.
:help ::p :help ::h :help filename-modfiers You can find out eg. by :h :p and then pressing Ctrl-D, or tab. c -- Vim plugin to paste current GNU Screen buffer in (almost) any mode: <http://www.vim.org/scripts/script.php?script_id=1512>
