FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 10-27-2008, 08:23 PM
Chris Bannister
 
Default vim Tip (was ... 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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-27-2008, 10:26 PM
Alex Samad
 
Default vim Tip (was ... Changes to vim, how to undo)

On Tue, Oct 28, 2008 at 10:23:13AM +1300, Chris Bannister wrote:
> 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.

Thanks

>
> 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
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>

--
"The British government has learned that Saddam Hussein recently sought significant quantities of uranium from Africa. "

- George W. Bush
01/28/2003
State of the Union Address
making a claim that administration officials knew at the time to be false
 

Thread Tools




All times are GMT. The time now is 08:47 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org