All Projects → vim-scripts → Tcomment

vim-scripts / Tcomment

An extensible & universal comment plugin that also handles embedded filetypes

Labels

Projects that are alternatives of or similar to Tcomment

Vimdown
A dirty tool to convert .vimrc and .vim script files to markdown
Stars: ✭ 54 (-15.62%)
Mutual labels:  viml
Bisectly
Binary search tool
Stars: ✭ 59 (-7.81%)
Mutual labels:  viml
Showmarks
Visually shows the location of marks.
Stars: ✭ 61 (-4.69%)
Mutual labels:  viml
Rubyblue
A collection of themes for different text editors that mimic the colors used in the code samples on ruby-lang.org
Stars: ✭ 54 (-15.62%)
Mutual labels:  viml
Vim Holylight
A Vim plugin for MacBook users that automatically sets the background to light or dark depending on the ambient light
Stars: ✭ 57 (-10.94%)
Mutual labels:  viml
Vim Blockle
Brace yourself, it's time to toggle your ruby blocks!
Stars: ✭ 60 (-6.25%)
Mutual labels:  viml
Yaml Vim
YAML Highlight script for VIM editor
Stars: ✭ 53 (-17.19%)
Mutual labels:  viml
Vdbi Vim
Database client for Vim
Stars: ✭ 63 (-1.56%)
Mutual labels:  viml
Vim Partial
Makes creating partials in your code a breeze!
Stars: ✭ 58 (-9.37%)
Mutual labels:  viml
Bufkill.vim
Unload/delete/wipe a buffer, keep its window(s), display last accessed buffer(s)
Stars: ✭ 61 (-4.69%)
Mutual labels:  viml
Vim Better Javascript Completion
An expansion of Vim's current JavaScript syntax file.
Stars: ✭ 55 (-14.06%)
Mutual labels:  viml
Grep.vim
Grep search tools integration with Vim
Stars: ✭ 56 (-12.5%)
Mutual labels:  viml
Colorsbox
Stars: ✭ 61 (-4.69%)
Mutual labels:  viml
Vim Alignta
Align Them All!
Stars: ✭ 54 (-15.62%)
Mutual labels:  viml
The Nerd Tree
A tree explorer plugin for navigating the filesystem
Stars: ✭ 62 (-3.12%)
Mutual labels:  viml
Vim Giphy
Giphy in your vim
Stars: ✭ 54 (-15.62%)
Mutual labels:  viml
Hypergit.vim
This git plugin provides many awesome features so that you don't need to type commands anymore..
Stars: ✭ 59 (-7.81%)
Mutual labels:  viml
Vim Eighties
Automatically resizes your windows
Stars: ✭ 64 (+0%)
Mutual labels:  viml
Html5 Syntax.vim
HTML5 syntax file for vim.
Stars: ✭ 62 (-3.12%)
Mutual labels:  viml
Vim Ruby Conque
Vim plugin to display ruby, rake, and rspec output colorized in ConqueTerm. Note: repeated runs of conqueterm may cause it to eat your shell ttys. I am no longer maintaining this.
Stars: ✭ 61 (-4.69%)
Mutual labels:  viml

This is a mirror of http://www.vim.org/scripts/script.php?script_id=1173

:TComment works like a toggle, i.e., it will comment out text that contains uncommented lines, and it will uncomment already commented text (i.e. text that contains no uncommented lines).

If the file-type is properly defined, :TComment will figure out which comment string to use based on the values of &commentstring or &comments. For some filetypes, the comment definition is explicitly defined. You can |tcomment#DefineType()| to add your own definitions.

TComment knows how to deal with embedded code of a different filetype than the main filetype, e.g., ruby/python/perl regions in vim scripts, HTML or JavaScript in php code etc.

As operator (the prefix can be customized via g:tcommentMapLeaderOp1 and g:tcommentMapLeaderOp2):

gc{motion}   :: Toggle comments (for small comments within one line 
                the &filetype_inline style will be used, if 
                defined)
gcc          :: Toggle comment for the current line
gC{motion}   :: Comment region
gCc          :: Comment the current line

Primary key maps:

<c-_><c-_>   :: :TComment
<c-_><space> :: :TComment <QUERY COMMENT-BEGIN ?COMMENT-END>
<c-_>b       :: :TCommentBlock
<c-_>a       :: :TCommentAs <QUERY COMMENT TYPE>
<c-_>n       :: :TCommentAs &filetype <QUERY COUNT>
<c-_>s       :: :TCommentAs &filetype_<QUERY COMMENT SUBTYPE>
<c-_>i       :: :TCommentInline
<c-_>r       :: :TCommentRight
<c-_>p       :: Comment the current inner paragraph

There is also a secondary set of key maps with _ as leader (more preferable on terminals).

The full documentation is available here: http://github.com/tomtom/tcomment_vim/blob/master/doc/tcomment.txt

Demo: http://vimsomnia.blogspot.com/2010/11/tcomment-vim-plugin.html

Also available via git http://github.com/tomtom/tcomment_vim

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].