Skip to content

Commit

Permalink
Mod README (slightly); Added definition of menu for declared keymaps.
Browse files Browse the repository at this point in the history
  • Loading branch information
cometsong committed Jun 8, 2012
1 parent 57a2c86 commit bcde0b7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
9 changes: 6 additions & 3 deletions README
@@ -1,12 +1,15 @@
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
" CommentFrame by bleopold <cometsong.net> "
" Public Domain, same license as Vim. "
" see: http://vimdoc.sourceforge.net/htmldoc/uganda.html#license "
" CommentFrame by bleopold <benjamin@cometsong.net> "
" "
" This is a simple plugin to generate fancy-looking comments/section dividers "
" with centered titles and append them at the current cursor position. "
" Also: CommentRight => line of comment (customizable for diff langs) with "
" string arg put on right end of line. "
" "
" from: makesd/makecsd by Chase Venters <chase.venters@chaseventers.com> "
" http://www.vim.org/scripts/script.php?script_id=3253 "
" "
" Public Domain, same license as Vim. "
" see: http://vimdoc.sourceforge.net/htmldoc/uganda.html#license "
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

23 changes: 20 additions & 3 deletions plugin/CommentFrame.vim
@@ -1,7 +1,5 @@
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
" CommentFrame by bleopold <cometsong.net> "
" Public Domain, same license as Vim. "
" see: http://vimdoc.sourceforge.net/htmldoc/uganda.html#license "
" CommentFrame by bleopold <benjamin@cometsong.net> "
" "
" This is a simple plugin to generate fancy-looking comments/section dividers "
" with centered titles and append them at the current cursor position. "
Expand All @@ -10,6 +8,9 @@
" "
" from: makesd/makecsd by Chase Venters <chase.venters@chaseventers.com> "
" http://www.vim.org/scripts/script.php?script_id=3253 "
" "
" Public Domain, same license as Vim. "
" see: http://vimdoc.sourceforge.net/htmldoc/uganda.html#license "
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

function! _CommentFrame(start_line, end_line, line_width, linechar, titlelinechar, str)
Expand Down Expand Up @@ -46,6 +47,22 @@ function! _cmd_CommentFrameCustom(edge, outer, inner, width, spacing, str)
endfunction


"------------------------------------------------------------------------------"
" Plugin Menu Creation "
"------------------------------------------------------------------------------"
amenu .170.1 &Plugin.Comment&Frames.Frame\ &Custom<Tab>cfc <Leader>cfc
amenu .170.1 &Plugin.Comment&Frames.Frame\ Hash&Dash<Tab>cfh <Leader>cfh
amenu .170.1 &Plugin.Comment&Frames.Frame\ Hash&Equal<Tab>cfH <Leader>cfH
amenu .170.1 &Plugin.Comment&Frames.Frame\ &SlashStar<Tab>cfs <Leader>cfs
amenu .170.1 &Plugin.Comment&Frames.Frame\ &QuoteDash<Tab>cfq <Leader>cfq
amenu .170.1 &Plugin.Comment&Frames.Frame\ Quote&Tilde<Tab>cfQ <Leader>cfQ
amenu .170.1 &Plugin.Comment&Frames.-Rights- :
amenu .170.1 &Plugin.Comment&Frames.Right\ &Custom<Tab>crc <Leader>crc
amenu .170.1 &Plugin.Comment&Frames.Right\ &Hash<Tab>crh <Leader>crh
amenu .170.1 &Plugin.Comment&Frames.Right\ &Slashes<Tab>crs <Leader>crs
amenu .170.1 &Plugin.Comment&Frames.Right\ &Quote<Tab>crq <Leader>crq


"------------------------------------------------------------------------------"
" Commands, Mappings of Multiple Lang Types "
"------------------------------------------------------------------------------"
Expand Down

0 comments on commit bcde0b7

Please sign in to comment.