A simple Vim plugin to comment and uncomment code.
- Single-line Comment
- Multi-line Comment
- Auto detection of comments from file-extension
- Add
Mr-Destructive/commenter.vim
as the Plugin path for any plugin manager in Vim. - Use custom maps to comment/uncomment code.
nnoremap <leader>cm :call Comment()<cr>
The map keys (<leader>cm
) can be any key as per your preference.
nnoremap <leader>uc :call Uncomment()<cr>
The map keys (<leader>uc
) can be any key as per your preference.
- Java
- Python
- Javascript
- C/C++
- Ruby
- Haskell
- Go
- Rust
- HTML/CSS
- Lua