vim-commentary

commentary.vim: comment stuff out (by tpope)

Vim-commentary Alternatives

Similar projects and alternatives to vim-commentary

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better vim-commentary alternative or higher similarity.

vim-commentary reviews and mentions

Posts with mentions or reviews of vim-commentary. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-11.
  • Neovim config from scratch (Part II)
    10 projects | dev.to | 11 Jan 2023
    vim-commentary comment code comfortably with motions and visual selections alike.
  • Anybody have a keymap/config for folding and unfolding a block of code? Also how to comment lines of selected code?
    2 projects | reddit.com/r/neovim | 9 Jan 2023
    With a plugin like vim-commentary or comment.nvim
  • Colored statusline doesn't load at start; I need to manually source $MYVIMRC
    4 projects | reddit.com/r/vim | 2 Jan 2023
    " This file contains common and basic plugins too essential not to include " See https://github.com/junegunn/vim-plug/wiki/tutorial " Auto install vim-plug (if not already installed) if empty(glob('~/.config/nvim/autoload/plug.vim')) silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim autocmd VimEnter * PlugInstall endif " Run PlugInstall if there are missing plugins autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) \| PlugInstall --sync | source $MYVIMRC \| endif " enable Vim-Plug: call plug#begin('~/.config/nvim/plugged') " Install/update plugins Plug 'https://github.com/tpope/vim-commentary.git' Plug 'https://github.com/morhetz/gruvbox' " Better C/C++ syntax highlighting; Plug 'https://github.com/jackguo380/vim-lsp-cxx-highlight' call plug#end() "---------- Basic configs ---------------------------------------------------- autocmd vimenter * ++nested colorscheme gruvbox " Enable transparent background let g:gruvbox_transparent_bg = 1
  • Neovim config from scratch (Part I)
    9 projects | dev.to | 30 Dec 2022
    Commentary Tim pope's comment plugin
  • Commenting both erb and handlebars files
    3 projects | reddit.com/r/neovim | 26 Dec 2022
    Unfortunately, https://github.com/tpope/vim-commentary fails on handlebars and https://github.com/numToStr/Comment.nvim fails on both (or I couldn't figure out 😅).
  • NeoVim Installation and Configuration on Win10/11
    14 projects | dev.to | 30 Nov 2022
    :set number :set autoindent :set tabstop=5 :set shiftwidth=4 :set smarttab :set softtabstop=4 :set mouse=a call plug#begin() Plug 'http://github.com/tpope/vim-surround' " Surrounding ysw) Plug 'https://github.com/preservim/nerdtree' " NerdTree Plug 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc Plug 'https://github.com/vim-airline/vim-airline' " Status bar Plug 'https://github.com/lifepillar/pgsql.vim' " PSQL Pluging needs :SQLSetType pgsql.vim Plug 'https://github.com/ap/vim-css-color' " CSS Color Preview Plug 'https://github.com/rafi/awesome-vim-colorschemes' " Retro Scheme Plug 'https://github.com/neoclide/coc.nvim' " Auto Completion Plug 'https://github.com/ryanoasis/vim-devicons' " Developer Icons Plug 'https://github.com/tc50cal/vim-terminal' " Vim Terminal Plug 'https://github.com/preservim/tagbar' " Tagbar for code navigation Plug 'https://github.com/terryma/vim-multiple-cursors' " CTRL + N for multiple cursors Plug 'https://github.com/rstacruz/vim-closer' " For brackets autocompletion " Auto-completion For Javascript, typescript, html, jsx ...etc Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'} " this is for auto complete, prettier and tslinting let g:coc_global_extensions = ['coc-tslint-plugin', 'coc-tsserver', 'coc-css', 'coc-html', 'coc-json', 'coc-prettier'] " list of CoC extensions needed Plug 'jiangmiao/auto-pairs' "this will auto close ( [ { " these two plugins will add highlighting and indenting to JSX and TSX files. Plug 'yuezk/vim-js' Plug 'HerringtonDarkholme/yats.vim' Plug 'maxmellon/vim-jsx-pretty' set encoding=UTF-8 call plug#end() nnoremap :NERDTreeFocus nnoremap :NERDTree nnoremap :NERDTreeToggle nnoremap :call CocActionAsync('jumpDefinition') nmap :TagbarToggle :set completeopt-=preview " For No Previews :colorscheme jellybeans let g:NERDTreeDirArrowExpandable="+" let g:NERDTreeDirArrowCollapsible="~" " --- Just Some Notes --- " :PlugClean :PlugInstall :UpdateRemotePlugins " " :CocInstall coc-python " :CocInstall coc-clangd " :CocInstall coc-snippets " :CocCommand snippets.edit... FOR EACH FILE TYPE " air-line let g:airline_powerline_fonts = 1 if !exists('g:airline_symbols') let g:airline_symbols = {} endif " airline symbols let g:airline_left_sep = '' let g:airline_left_alt_sep = '' let g:airline_right_sep = '' let g:airline_right_alt_sep = '' let g:airline_symbols.branch = '' let g:airline_symbols.readonly = '' let g:airline_symbols.linenr = '' inoremap pumvisible() ? coc#_select_confirm() : ""
  • Any reason why <C-_> doesn't work after updating ?
    3 projects | reddit.com/r/neovim | 22 Nov 2022
    I use https://github.com/tpope/vim-commentary to comment/uncomment code and want to map 'gcc' which comments a line to 'CTRL+/', up until now `map gcc` was working fine but I recently updated neovim from 0.6 to 0.8, I think I was using an old package from the AUR that has been replaced and thus didn't get regular updates when updating my system.
  • Ask HN: Is it still possible to live in a terminal?
    28 projects | news.ycombinator.com | 14 Oct 2022
    - commentary for commenting (https://github.com/tpope/vim-commentary)
  • Why is there no built-in code comment operator?
    3 projects | reddit.com/r/vim | 9 Oct 2022
    A bunch of Tim Pope's plugins are almost compulsory for effective usage of Vim. https://github.com/tpope/vim-commentary does the trick.
    3 projects | reddit.com/r/vim | 9 Oct 2022
    I can't speak for how OP would do it, but you can generalize single-line commands to multiple lines by visually selecting the lines and then hitting colon (which auto-fills the command to be :'<,'>) and then run :'<,'>norm I// to comment or :'<,'>norm ^xx. See: :h normal-range. Though personally, I just use vim-commentary like many others in this thread.
  • A note from our sponsor - SonarLint
    www.sonarlint.org | 2 Feb 2023
    Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today. Learn more →

Stats

Basic vim-commentary repo stats
45
5,114
1.4
3 months ago
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com