Bookmarks in Vim

Wednesday, 17 Mar 2004

I finally have an actual use for Vim’s GUI menu support (besides occasionally fixing the font on foreign machines when using gvim):

if has("menu")
  amenu Book&marks.&Plasmasturm.index :e scp://ps/www/index.shtml<CR>
  amenu Book&marks.&Plasmasturm.css :e scp://ps/www/style.css<CR>
  " etc,
  " etc …
endif

Now I have a handy bookmarks menu in Vim which lets me fire up frequently edited locations with just a little less effort. Whee.

See :help menu for more information, including how to invoke menus in a console Vim.