vim-commentary VS coc.nvim

Compare vim-commentary vs coc.nvim and see what are their differences.

vim-commentary

commentary.vim: comment stuff out (by tpope)

coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers. (by neoclide)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
vim-commentary coc.nvim
51 319
5,633 23,845
- 0.7%
3.5 9.0
3 months ago 6 days ago
Vim Script TypeScript
- GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

vim-commentary

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-06-01.
  • html css commenting things out
    2 projects | /r/vim | 1 Jun 2023
  • Plugin for comments
    2 projects | /r/neovim | 12 Mar 2023
    https://github.com/tpope/vim-commentary does what you expect!
  • My Solution to Block Comments
    2 projects | /r/vim | 11 Mar 2023
    I've replaced most of my custom maps for commenting with tpope's commentary plugin. It's a great plugin. However, I wasn't happy with the lack of multi-line/block comment abilities so I created some maps to compliment the commentary plugin. Here are some maps that can be used with autocmd, FileType and for JavaScript comments.
  • Vim plugin for wrapping/unwrapping line comments
    2 projects | /r/vim | 2 Mar 2023
    commentary.vim + :h gq?
  • Favorite vimrc configs for coding?
    8 projects | /r/vim | 20 Feb 2023
    Having said this, there are some useful language independent extensions: jiangmiao/auto-pairs, tpope/vim-commentary, preservim/tagbar, junegunn/vim-peekaboo
  • 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 | /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 | /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 | /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 ๐Ÿ˜…).

coc.nvim

Posts with mentions or reviews of coc.nvim. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-06.
  • Existing non-lua plugins examples
    8 projects | /r/neovim | 6 Dec 2023
    For Typescript in particular, he most notable examples are probably neoclide/coc.nvim and vim-denops/denops.vim
    8 projects | /r/neovim | 6 Dec 2023
    The most famous TypeScript one probably is coc.nvim
  • ready to use neovim for web development (frontend) - beginners
    4 projects | /r/neovim | 5 Dec 2023
    It is flatly the wrong mindset to think of vim as an IDE. vim is a code editor: get in, make change, get out. Consider vim koans, which are a fun little read. You can throw coc.nvim at Neovim, along with a few other bits to give you a Good Enough setup, but vim isn't and will never be an IDE.
  • C# lsp configuration with neovim CoC
    4 projects | /r/neovim | 10 Nov 2023
    I'm currently on an old setup (using coc and polyglot) and nvim v0.6.1. I'll be updating to a more modern setup within next year, using the native lsp and building nvim more frequently. But that's not today.
  • Does anyone know some good altermatives for these Vim plugins on Emacs?
    3 projects | /r/emacs | 18 Jul 2023
    coc.nvim
  • LazyVim
    32 projects | news.ycombinator.com | 16 Jul 2023
    There are some plugins which have the best documentations I have ever seen, but you need to read it from the Vim.

    Example of coc.nvim: https://github.com/neoclide/coc.nvim/blob/master/doc/coc.txt

  • Resources on learning bash scripting
    5 projects | /r/bash | 4 Jul 2023
    Actually you can with coc.nvim & coc-sh. So long as shellcheck is also installed and in PATH, it'll integrate with coc/vim just fine.
  • how to set up coc.nvim extension on offline machine?
    2 projects | /r/vim | 7 Jun 2023
    When you install an extension it runs an npm install or yarn, iirc, which is going to be problematic for you being offline. I was going to say you could copy that ~/.config/coc folder directly to the other machine but yeah, Windows, no idea. You see here https://github.com/neoclide/coc.nvim/wiki/Using-coc-extensions
  • GCC autocompletion
    2 projects | /r/vim | 30 May 2023
    You can try https://github.com/neoclide/coc.nvim, the pre-requisite is to install nodeJS, then to install all the languages LSP. This works for me for Angular, Rust, JavaScript, Vimscript, etc
  • NeoVim & Rust
    7 projects | /r/rust | 26 May 2023
    But for ยซ intellisense ยป and completion you can use this https://github.com/neoclide/coc.nvim it works with rust-analyser so it executes a cargo check and fmt every time you save the file as well.

What are some alternatives?

When comparing vim-commentary and coc.nvim you can also consider the following projects:

YouCompleteMe - A code-completion engine for Vim

vim-lsp - async language server protocol plugin for vim and neovim

nvim-treesitter - Nvim Treesitter configurations and abstraction layer

nvim-cmp - A completion plugin for neovim coded in Lua.

nerdcommenter - Vim plugin for intensely nerdy commenting powers

nvim-lspconfig - Quickstart configs for Nvim LSP

LunarVim - ๐ŸŒ™ LunarVim is an IDE layer for Neovim. Completely free and community driven.

ale - Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support

vim-polyglot - A solid language pack for Vim.

deoplete.nvim - :stars: Dark powered asynchronous completion framework for neovim/Vim8

cmp-nvim-lsp - nvim-cmp source for neovim builtin LSP client

ansible-language-server - ๐Ÿšง Ansible Language Server codebase is now included in vscode-ansible repository