Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Vim plugin that sets the value of ‘commentstring’ to a different value depending on the region of the file you are in.

NotificationsYou must be signed in to change notification settings

suy/vim-context-commentstring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a very simple plugin to automatically set the 'commentstring' and'comments' Vim options in file types which contain more than one syntax (likeJavaScript nested inside HTML, or Lua nested in VimL).

It uses the names of the syntax highlighting groups to know where the cursor is,and just set the value of those Vim settings to one appropriate for that part ofthe file.

This will make Vim properly use the features, which by default are just fixedvalues which are set by file type. This allows to use a plugin likeTim Pope’s vim-commentary to toggle thecomments, or the native Vim functionality of wrapping text when you are typinga lines of comments.

Demo

See the documentation in the doc/context-commentstring.txt file, or browse itonline from the hosted source code in:

About

Vim plugin that sets the value of ‘commentstring’ to a different value depending on the region of the file you are in.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp