Skip to content

Instantly share code, notes, and snippets.

@VincentVetsch
Created August 16, 2012 00:04
Show Gist options
  • Save VincentVetsch/3364852 to your computer and use it in GitHub Desktop.
Save VincentVetsch/3364852 to your computer and use it in GitHub Desktop.
VIM: Adds a menu to gvim
" in your _vimrc (or .vimrc)
" The "My" identifier is the name of the Menu and binds all the commands together
amenu My.Insert\ a\ VIM\ modeline ggOvim:ff=unix ts=4 ss=4vim60:fdm=markergg
" fName: Only the filename (without path)
" fPath: Only the path
" rName: path+filename relative to current directory
amenu My.Copy\ fName :let @*=expand("%:t")
amenu My.Copy\ fPath :let @*=expand("%:p:h")
amenu My.Copy\ rName :let @*=expand("%:.")
amenu My.Tab\ sball :tab sball
amenu My.vimtips :tabe c:/intranet/vimtips.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment