All Projects → cometsong → CommentFrame.vim

cometsong / CommentFrame.vim

Licence: other
Add Comments in Frames to the file you're editing, or Comments aligned on the Right side of a line. Customizable!

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to CommentFrame.vim

Nerdcommenter
Vim plugin for intensely nerdy commenting powers
Stars: ✭ 4,454 (+10504.76%)
Mutual labels:  vim-plugin, comment
swifty-vim
⌨️ A Vim plugin for Swift which provides file detection, syntax highlighting, support for compiling and running tests, and optional support for formatting and linting tools.
Stars: ✭ 18 (-57.14%)
Mutual labels:  vim-plugin
notoire
A vim plugin to take notes using the Zettelkasten method
Stars: ✭ 53 (+26.19%)
Mutual labels:  vim-plugin
code runner.nvim
Neovim plugin.The best code runner you could have, it is like the one in vscode but with super powers, it manages projects like in intellij but without being slow
Stars: ✭ 234 (+457.14%)
Mutual labels:  vim-plugin
comment-value
Instruments a Node program and updates its comments with computed expression values
Stars: ✭ 27 (-35.71%)
Mutual labels:  comment
vim-textobj-sentence
Improving on Vim's native sentence text object and motion
Stars: ✭ 92 (+119.05%)
Mutual labels:  vim-plugin
vim-lineletters
because letters are easier to touch type than numbers
Stars: ✭ 38 (-9.52%)
Mutual labels:  vim-plugin
vim-thematic
Alter Vim's appearance to suit your task & environ
Stars: ✭ 218 (+419.05%)
Mutual labels:  vim-plugin
auto-pairs
Vim plugin, insert or delete brackets, parentheses, and quotes in pairs
Stars: ✭ 109 (+159.52%)
Mutual labels:  vim-plugin
vim-jsonc
⚠️Deprecated⚠️: Vim syntax highlighting plugin for JSON with C-style line (//) and block (/* */) comments.
Stars: ✭ 52 (+23.81%)
Mutual labels:  vim-plugin
dps-ghosttext.vim
GhostText plugin powered by denops.vim
Stars: ✭ 20 (-52.38%)
Mutual labels:  vim-plugin
waline
💬 A Simple, Safe Comment System
Stars: ✭ 1,145 (+2626.19%)
Mutual labels:  comment
vim-easydebugger
A VIM multi-language debugger plugin
Stars: ✭ 47 (+11.9%)
Mutual labels:  vim-plugin
html-comment-regex
Regular expression for matching HTML comments
Stars: ✭ 15 (-64.29%)
Mutual labels:  comment
42header.vim
Add and update the 42 comment header at the top of your files
Stars: ✭ 15 (-64.29%)
Mutual labels:  vim-plugin
spotdiff.vim
A range and area selectable diffthis to compare partially
Stars: ✭ 29 (-30.95%)
Mutual labels:  vim-plugin
django-simple-forum
full featured forum, easy to integrate and use.
Stars: ✭ 65 (+54.76%)
Mutual labels:  comment
vim-win
🖼️ A Vim plugin for managing windows.
Stars: ✭ 48 (+14.29%)
Mutual labels:  vim-plugin
commentator
A simple commenting system for your blog.
Stars: ✭ 29 (-30.95%)
Mutual labels:  comment
grav-plugin-comments
Grav Comments Plugin
Stars: ✭ 52 (+23.81%)
Mutual labels:  comment
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
"                                 CommentFrame!                                "
"                                                                              "
"                      Copyright (c) 2012 Benjamin Leopold                     "
"                              All rights reserved.                            "
"                                                                              "
"                      Public Domain, same license as Vim.                     "
"        see: http://vimdoc.sourceforge.net/htmldoc/uganda.html#license        "
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~ by cometsong <benjamin at cometsong dot 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.                                    "
"                                                                              "
" To customize further, unmapping of default keysets can be done, plus         "
" creating any new combinations of frame types by using the custom             "
" CommentFrameCustom and CommentRightCustom functions in your vimrc.           "
" See below for details.                                                       "
"                                                                              "
" For latest developments, any mods, pull requests, etc, see:                  "
"   https://github.com/cometsong/CommentFrame.vim                              "
"                                                                              "
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
"             inspired by: makesd/makecsd by Chase Venters script:             "
"             http://www.vim.org/scripts/script.php?script_id=3253             "
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

Plugin Configuration:
  `g:CommentFrame_SkipDefaultMappings`   let =1 to not use default keymaps

  `g:CommentFrame_TextWidth`             set global default width of comment
                                         frames and lines; always modifiable
					 using the `...Custom` functions

Basic Usage:

The default keymappings are setup for a custom function to create a CommentFrame
and also a CommentRight line.  All keymapping start with <Leader>, all default
frames and right lines are 80 characters.

    Key     Command Name                Result
    ---     --------------------------  ----------------------------------------
    fcs     CommentFrameSlashes         border: //****************************//
    fcS     CommentFrameSlashStar       border: /******************************/
    fch     CommentFrameHashDash        border: #------------------------------#
    fcH     CommentFrameHashEqual       border: #==============================#
    fcq     CommentFrameQuoteDash       border: "------------------------------"
    fcQ     CommentFrameQuoteTilde      border: "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

    frh     CommentRightHash            line: #~~~~~~~~~~~~~~~~~~~~~ title ~~~~~
    frs     CommentRightSlashes         line: //~~~~~~~~~~~~~~~~~~~~ title ~~~~~
    frS     CommentRightSlashStar       line: /*~~~~~~~~~~~~~~~~~~ title ~~~~~*/
    frq     CommentRightQuote           line: "~~~~~~~~~~~~~~~~~~~~~ title ~~~~~

These defaults can be unmapped, remapped or preserved, as you see fit or can be
not mapped at all using the config variable mentioned above.

New styles and keymappings can be added using the following lines in your vimrc: 
    command! -nargs=+ CommentFrameSlashMeDown :call CommentFrame#Custom('//', '//', 80, '*', '_', 0, <args>)
    call CommentFrame#MapKeys('ni', 'cfs', ':CommentFrameSlashMeDown ""<Left>')
This will create a new command and a new key mapped in modes normal (n) and
insert (i) modes, as designeted in the first MapKeys arg, then 'cfC' as the keys
to map, and the command to be run with that keypress, or by using the command
from the ':' command line.

Below is the MapKeys call for direct access to the CommentFrameCustom 
command, if only a keymapping is desired, not another usable command.
    call CommentFrame#MapKeys("n", "mykeys", ":CommentFrameCustom '!','...',80,':','>',3,''<Left>")

Have fun stormin the castle!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].