vim Tip (was ... Re: Changes to vim, how to undo)
On Sun, Oct 26, 2008 at 07:34:34AM +1100, Alex Samad wrote:
> my problem is after a recent upgrade of vim I had to add in
> source /usr/share/vim/vim71/ftplugin/mail.vim
>
> when i used to be able to do just
>
> set filetype=mail
>
> I am not sure what I need to change - or even how to debug or trace
> which modules are loaded in which order ....
<esc><esc>:scriptnames
The two escapes are just to make sure you are in command mode. :)
Just found another nifty feature:
(and this is vim at a tty, NOT gvim!)
<esc><esc>:<ctrl-f>ihe scri<tab>
<ctrl-f> opens the command window -- you can scroll through the
history (":he cmdline-window" for the gory details.)
i puts you in insert mode in the command window
he scri<tab> brings up a menu of possible topics!
Hope it works for you, one of the choices is related to debugging.
P.S. Found that by accident! (clumsy fingers ...) and couldn't repeat
it, but a ":he:" led me in the right direction.
Also, recent reading:
http://www.geocities.com/volontir
http://www.oualline.com/vim-cook.html
http://www.moolenaar.net/habits.html
--
Chris.
======
I contend that we are both atheists. I just believe in one fewer god
than you do. When you understand why you dismiss all the other
possible gods, you will understand why I dismiss yours.
-- Stephen F Roberts
Reply to: