History Report a problem
Article Edit this page Discussion

Quick launch html and other Windows documents

From Vim Tips Wiki

Jump to: navigation, search
 

[edit] Duplicate tip

This tip is very similar to the following:

These tips need to be merged – see the merge guidelines.

Tip 732Previous TipNext Tip

Created: May 22, 2004 Complexity: basic Author: Yasuoki Mutoh Minimum version: 6.0 Karma: -14/26 Imported from: Tip#732


First, try the following command in your Vim.

:!start explorer http://www.vim.org/

You will see the Vim home page in the browser. That's OK.

Then, it'll be much quicker if a menu icon is defined like this.

Triple crick on url and click icon, then you'll get the url in your browser.

But inserting a new icon is not easy, so replace existing one.

Following is the part of "$VIM_HOME\vim\vim61\menu.vim" that shows "Open New" icon replaced with "Start Explore" definition.

if 1 " disabled; These are in the Windows menu " Replaced 0 to 1.
  an 1.135 ToolBar.-sep4- <Nop>
  "an 1.140 ToolBar.New <C-W>n " Commented.
  vnoremenu 1.140 ToolBar.New "wy:!start explorer <C-R>w<CR> " Added.
  tmenu ToolBar.New Start Explorer " Tool tip added.
  an 1.150 ToolBar.WinSplit <C-W>s
  ...
  ...
endif

Note

The named buffer "w" is used for not disturbing clip board.

Remove comment on Tool tip line.

[edit] Comments

See VimTip628, VimTip394


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
Terminator Wiki
Legend of Zelda Wiki
Flash Gordon
Everquest II Wiki
Yo-Yo Wiki
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions


Vote for featured Wikia!

Send this article to a friend
"Quick launch html and other Windows documents"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation