vim-commentary
undotree
Our great sponsors
vim-commentary | undotree | |
---|---|---|
51 | 35 | |
5,687 | 3,520 | |
- | - | |
2.5 | 5.8 | |
17 days ago | 9 days ago | |
Vim Script | Vim Script | |
- | BSD 3-clause "New" or "Revised" License |
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
- html css commenting things out
-
A very simple way to comment/uncomment lines and visual selections.
Also, tpope/vim-commentary
-
Plugin for comments
https://github.com/tpope/vim-commentary does what you expect!
-
My Solution to Block Comments
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
commentary.vim + :h gq?
-
Favorite vimrc configs for coding?
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)
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?
With a plugin like vim-commentary or comment.nvim
-
Colored statusline doesn't load at start; I need to manually source $MYVIMRC
" 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)
Commentary Tim pope's comment plugin
undotree
-
Gitless a simple VCS built on top of Git
What's helped me much more lately is undotree for vim [1]. It basically logs every single time a file is saved. Its much more useful because commits have to be made by humans and they may not do it often (and usually there is an incentive for "clean or working commits"). There have been many times where I went back to copy something from the undotree.
[1]: https://github.com/mbbill/undotree
-
Some plugin for tracking and visualizing of changes across multiple buffers? Or switches between buffers?
Hi, I love Vim, and use it for big projects too, with many files. Often I switch between many files, make changes, undo, and get lost in them, trying to find a file that I edited and undoed a few minutes ago. I think, maybe exists some plugin, that will visualize my history of changes, like UndoTree, but across multiple buffers? And/or list of my teleportations between buffers? I can imagine this, also like a tree...
-
Opening undotree does not automatically change focus to the buffer
The plug-in could be found here
-
Which vim plugins do not have a lua equivalent yet?
undotree
-
mini.basics - Common configuration presets for options/mappings/autocommands
undotree: tree like visualization of undo history
-
Superpowers but...
Install undo tree and your life turns into a choose your own adventure story.
-
Tell HN: Vim users, `:x` is like `:wq` but writes only when changes are made
> I really hate autosave. I like using saving like a checkpoint where i have the ultimate undo button by ditching the unsaved changes.
Although I don't use autosave, I don't think it matters that much with vim because you can always use undotree[0]
0: https://github.com/mbbill/undotree
-
Any good reason not to remap "u" to "g-" and "<c-r>" to "g+"?
I finally got around to clear up the vague notions I had about the `g+` and `g-` commands which I knew helped me jump to across branches but was never exactly sure how. With the help of undotree module, it is now crystal clear what the difference was between `u` and `g-` and between `` and `g+` are.
-
Just discovered "mbbill/undotree" - I am amazed!!!
Here the link: https://github.com/mbbill/undotree
-
Resolving the Great Undo-Redo Quandary
Vim has a plugins for that too. ;)
I use https://github.com/mbbill/undotree but if that's not to your choice there are many others.
What are some alternatives?
nerdcommenter - Vim plugin for intensely nerdy commenting powers
nvim-dap - Debug Adapter Protocol client implementation for Neovim
nvim-comment - A comment toggler for Neovim, written in Lua
gundo.vim - A git mirror of gundo.vim
tcomment_vim - An extensible & universal comment vim-plugin that also handles embedded filetypes
vim-mundo - :christmas_tree: Vim undo tree visualizer
kommentary - Neovim commenting plugin, written in lua.
nvim-local-fennel - Execute local Fennel Lisp files in Neovim upon startup
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
wishlist - A public catalogue of Lua plugins Neovim users would like to see exist
vim-lsp - async language server protocol plugin for vim and neovim
undo-tree