auto-pairs
Vim plugin, insert or delete brackets, parens, quotes in pair (by jiangmiao)
pear-tree
A Vim auto-pair plugin that supports multi-character pairs, intelligent matching, and more (by tmsvg)
Our great sponsors
auto-pairs | pear-tree | |
---|---|---|
20 | 7 | |
4,066 | 389 | |
- | - | |
0.0 | 0.0 | |
5 months ago | over 4 years ago | |
Vim Script | Vim Script | |
- | MIT License |
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.
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.
auto-pairs
Posts with mentions or reviews of auto-pairs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-20.
-
How do I implement this effect in Neovim?
This plugin, jiangmiao/auto-pairs. Has a nice feature called Fly Mode where you can escape from any brace or quote with the ending pair no matter where you are while still being in INSERT mode. I'm trying to make this plugin work but having issues. Does anyone know how I can go about implementing this?
-
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
-
Making AutoPairs work with '< >'
You can load a plugin inside of your vimrc using the :runtime command. I'm assuming you're using https://github.com/jiangmiao/auto-pairs -- the initialization code for the plugin should be in plugin/auto-pairs.vim, so you can put this in your vimrc:
- Do vim users tend to enter insert mode and exit insert mode often in order to do simple movements using hjkl while writing? Or do you switch between arrow keys in insert mode and hjkl depending on what mode you're in?
-
oh, happy it ended
- packer instead of plug. it's written in lua and optimises - vim-autopairs instead of auto-pairs. it's written in lua + extremely important: it dosn't put pair of quotes if you're right before the word. it puts only one, so you don't have to manually delete second one -nvim-tree over nerdtree. it's written in lua, isn't this enough?)
- Skip over bracket plugins
-
"Unknown functions" called after deleting a plugin
I've recently switched from Pathogen to VimPlug and started installing new plugins. One of them was auto-pairs, which I promptly uninstalled. However, Vim looks for functions from this plugin when I try to type, preventing me from writing anything. For example, when I try pressing space, Vim complains about E117: Unknown function: AutoPairsSpace.
-
Vim: A Beginner's Guide From A Beginner
auto-pairs - completes your parentheses, brackets and quotes
-
Is it unorthodox to write java purely in Vim/CLI and not use an IDE?
Extra: for extra intellisense, you can use https://github.com/dense-analysis/ale (I don't - I like to stick to vanilla Vim as much as possible), https://github.com/ervandew/supertab (for completions using TAB instead of Ctrl-P), and https://github.com/jiangmiao/auto-pairs (automatic bracket insertion).
-
What is the best way to tab out?
If you're in normal mode, as people have already said, it's A. If you are in insert mode, there are a lot of possibilities with roughly the same cost. Vim has a few insert-mode movement commands, e.g. j goes down a line, but so far as I know there isn't one that helps you. The vim-rsi plugin gives you readline-type commands in insert mode, so if you had that you could do to jump to the end of the line. Another possibility with plugins is to have something like auto-pairs installed in which case just typing ) would do it.
pear-tree
Posts with mentions or reviews of pear-tree.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-02.
-
Transitioning from fzf.vim to Telescope
After some digging, it turned out the problem was caused by the plugin tmsvg/pear-tree. The solution outlined here worked for me.
-
Do vim users tend to enter insert mode and exit insert mode often in order to do simple movements using hjkl while writing? Or do you switch between arrow keys in insert mode and hjkl depending on what mode you're in?
https://github.com/tmsvg/pear-tree (the one I use)
-
The curse of strong typing by fasterthanlime
In general, having an LSP update the document at unexpected times is problematic for me (especially when the document being checked at random times leads to big flickers of temporary syntax error worse than what I installed pear-tree to reduce from typing things like quotes).
-
What are your must-have vim/nvim extensions?
tmsvg/pear-tree for an extensible autocloser (I hate closing GHC {-# LANGUAGE ... #-} myself, and it's not built into any of the common plugins AFAIK)
-
When to switch to normal mode while writing in vim
Most pair matching plugins will let you type the closing brackets explicitly, and skip over them if they're already there. For instance, in pear-tree you'll want to enable Smart Pairing. So that's the easiest answer to your question. If your current plugin doesn't support that sort of behavior, I'd suggest finding one that does; it makes things so much nicer!
-
Which new Neovim pairing plugin do you prefer: nvim-autopairs or pears.nvim?
Myself, I have been and continue to be a pear-tree user. Works reasonably well, but it does seem to be an abandoned plugin these days. Though I do like that pear-tree has tag pairing support in addition to traditional bracket pairing.
-
How can I correctly map compe#confirm() with jiangmao/auto-pairs?
I know this is not the answer you're looking for, but I have tried a lot of auto pairs like plugins and I always have had problems with any of them. This week tried Lexima instead of https://github.com/tmsvg/pear-tree, and I must admit that Lexima is pretty cool. You could try with Lexima and see if it fits your needs.
What are some alternatives?
When comparing auto-pairs and pear-tree you can also consider the following projects:
lexima.vim - Auto close parentheses and repeat by dot dot dot...
nvim-autopairs - autopairs for neovim written in lua
vim-rainbow - Rainbow brackets for Vim
tabout.nvim - tabout plugin for neovim
surround.nvim - A surround text object plugin for neovim written in lua.
vim-closer - Closes brackets
nvim-compe - Auto completion Lua plugin for nvim
nvim-colorizer.lua - The fastest Neovim colorizer.
pears.nvim - Auto pair plugin for neovim
vim-unimpaired - unimpaired.vim: Pairs of handy bracket mappings
auto-pairs vs lexima.vim
pear-tree vs nvim-autopairs
auto-pairs vs vim-rainbow
pear-tree vs lexima.vim
auto-pairs vs tabout.nvim
pear-tree vs surround.nvim
auto-pairs vs vim-closer
pear-tree vs nvim-compe
auto-pairs vs nvim-colorizer.lua
pear-tree vs pears.nvim
auto-pairs vs nvim-compe
pear-tree vs vim-unimpaired