8000 GitHub - wangfanstar/vim-hidecomments: neovim/vim plugin to hide or display comments in C/C++/python
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wangfanstar/vim-hidecomments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-hidecomments

A Vim plugin that toggles the visibility of comments in your code using Vim's conceal feature.

Features

  • Toggle visibility of single-line and multi-line comments with a single command.
  • Supports common programming languages like C, C++, and Python.
  • Uses Vim's native conceal feature to hide comments without altering the file content.

Installation

You can install vim-hidecomments using your favorite plugin manager or manually by placing the files in your .vim directory.

Using Vim-Plug

  1. Add the following to your .vimrc:

    Plug 'wangfanstar/vim-hidecomments'
  2. Run :PlugInstall in Vim.

Using Pathogen

  1. Clone this repository into your .vim/bundle directory:

    git clone https://github.com/wangfanstar/vim-hidecomments.git ~/.vim/bundle/vim-hidecomments
  2. Run :Helptags in Vim to regenerate help tags.

Manual Installation

  1. Download the plugin files and copy them to your .vim directory.

  2. Make sure the following lines are in your .vimrc:

    filetype plugin on

Usage

To toggle the visibility of comments in the current buffer, use the following command in normal mode:

:HideComments

Configuration

No configuration is required to use this plugin. However, you can map the :HideComments command to a keyboard shortcut in your .vimrc for convenience:

nmap <Leader>hc :HideComments<CR>

​ Replace hc with your preferred key combination.

License This plugin is released under the MIT License. See LICENSE file for more details.

About

neovim/vim plugin to hide or display comments in C/C++/python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0