History
Article Edit this page Discussion

Debugging window autocommands

From Vim Tips Wiki

Jump to: navigation, search

Tip 202 Previous Next Created: January 21, 2002 Complexity: advanced Author: Hari Krishna Dara Version: 6.0


Don't know how people debug autocommands, but I just found out that you can debug (at least) those that result due to window close by just doing a debug quit, i.e.,

:debug quit

Vim will let you step into the autocommands. Try it to believe.

[edit] Comments

While going through the help pages, I figured this feature is documented with the following example:

:debug edit <file>

This should let you debug autocommands that get triggered by loading a new buffer.


There's also the :verbose command, with which you can specify the verbosity level for one command only:

:9verbose edit somefile.txt.gz

The verbose levels are documented in :help 'verbose'. The 'verbose' option variable sets verbosity permamently, not just for one command only.


Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Doctor Who
Legend of Zelda Wiki
Terminator Wiki
Everquest II Wiki
Mystery Science Theater 3000
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions
Send this article to a friend
"Debugging window autocommands"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation