File tree Expand file tree Collapse file tree 3 files changed +22
-8
lines changed Expand file tree Collapse file tree 3 files changed +22
-8
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ == vim-context-commentstring
2+
3+ This is a very simple plugin to automatically set the 'commentstring' and
4+ 'comments' Vim options in file types which contain more than one syntax (like
5+ JavaScript nested inside HTML, or Lua nested in VimL).
6+
7+ It uses the names of the syntax highlighting groups to know where the cursor is,
8+ and just set the value of those Vim settings to one appropriate for that part of
9+ the file.
10+
11+ This will make Vim properly use the features, which by default are just fixed
12+ values which are set by file type. This allows to use a plugin like
13+ https://github.com/tpope/vim-commentary[Tim Pope's vim-commentary] to toggle the
14+ comments, or the native Vim functionality of wrapping text when you are typing
15+ a lines of comments.
16+
17+ image::demo1.gif[Demo]
18+
19+ See the documentation in the doc/context-commentstring.txt file, or browse it
20+ online from the hosted source code in:
21+
22+ https://raw.github.com/suy/vim-context-commentstring/master/doc/context-commentstring.txt
You can’t perform that action at this time.
0 commit comments