vim-snippets
vim-surround
Our great sponsors
vim-snippets | vim-surround | |
---|---|---|
16 | 72 | |
4,499 | 11,780 | |
- | - | |
7.0 | 3.2 | |
8 days ago | about 2 months ago | |
Vim Snippet | Vim Script | |
MIT 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-snippets
-
JavaScript and CSS in HTML files
Also, I'm using vim-snipmate style snippets in LuaSnip. How can I import snippets in javascript.snippets in html.snippetswithout having to copy everything.
-
Can anybody give me some review of coq_nvim :>
cmp works fine and I was able to trivially make it only suggest lsp completion for me by only including lsp sources. The setup is significantly more complicated with having the install 7ish plugins instead of just 3 for coq. I don't think I would've had the patient to go through the setup when I was just starting to use neovim. cmp also have much nicer UI (e.g. it shoulds documentation and sometimes function signiture as you browse through the suggestion.) With snippet you can find something like https://github.com/honza/vim-snippets which have more than what I need. You also need to choose a snippet engine so that's more decision to make.
- Closing brackets are highlighted in red when in the init.vim file
-
Is There a Snippet Collection for LuaSnip?
Since LuaSnip also supports snipmate I'm using vim-snippets since it's offering a lot of snippets I'm using often without having to write my own. But as @eliizaak said: it's not Lua and perhaps I'll find the time and energy to learn a bit more about LuaSnip and write my own snippets ... ;)
-
Snippets
Does this include snippets apart from honza/vim-snippets?
It includes the snippets from honza/vim-snippets and my own snippets.
-
Multiple templates for same filetype?
vim-snippets as you've already mentioned.
-
Do Vim Snippets work in Obsidian?
Skimming over the blog post you linked, it appears that the author uses Vim plugins to get some of the snippets working, which I'm near-certain is impossible with the Vim features available to Obsidian. I don't think installing Vim plugins with vim-plug (as used by both myself and the author of the linked blog) is possible in Obsidian, for example. Without some way to manage installing Vim plugins, you won't be able to get plugins which enable vim snippets as used in the blog post.
-
[vimtex, vim-sandwich] How would you surround visual selected text with \emph{...} or \textbf{...} via a macro?
Sorry does it?
-
How to automatically include C headers in vim?
Auto adding include files or a specific non-static function is generally a bad idea, but I use yasnippet on Emacs for copyright/licensing info, this seemingly has the same purpose but oriented towards vim users, which makes file templates trivial (on Emacs at least, I don’t usually use vim unless I can’t use Emacs or mg for some reason).
vim-surround
-
Automatically encapsulate or surround existing code with symbol pair
I may be mistaken, but it seems to me that this neat feature comes from this plugin : https://github.com/tpope/vim-surround
- How to surround a paragraph with multiple charaters/symbols?
-
Ask HN: Text Editor with “add prefix/suffix around selected text” feature?
Vim can do this with the following plugin: https://github.com/tpope/vim-surround
I exclusively use the visual mode commands though, because I find the normal-mode commands confusing.
-
markdowny.nvim
e.g. in vim-surround you could just do something like ysiw_ to make a word italics or ysiw*w. (assuming you also have vim-repeat).
-
Neovim config from scratch (Part II)
vim-surround act on surrounding characters (think quotes, braces, parentheses...)
-
Ask HN: Is Vim still worth learning?
Surround is a plugin which adds more text objects: https://github.com/tpope/vim-surround
cs"': change surrounding quotes, e.g. "foo" -> 'foo'
cs([: change surrounding brackets, e.g. (foo) -> [ foo ]
( cs]) would omit the spaces)
ci": change in quotes, e.g. "foo" -> "" (in insert mode between the quotes)
ca": change around quotes, e.g. x"foo"y -> xy (in insert mode between x and y
viWS: add tag around current word using visual mode, e.g. foo -> foo
dst: delete surrounding tag, e.g. foo -> foo
It's really good. I'm not familiar with argument.
-
Use Telescope to find files and attach their path to the current buffer
It supports multiple selection, inserting into different locations (i I a A o O) and final vim mode (insert, normal and visual). The example uses visual mode and vim-surround to add quotation marks.
-
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?
I have mappings for single character movement in insert mode ( and ). But, using something like https://github.com/tpope/vim-surround is also really useful for something like this. I have an "inner line" motion so that I can do something like ysil] to wrap the whole line in brackets after typing the initial thing.
-
Wdyt about easy path for plugins?
git clone https://github.com/tpope/vim-surround \ ~/.local/share/nvim/site/pack/github/start/vim-surround
What are some alternatives?
nvim-autopairs - autopairs for neovim written by lua
obsidian-vimrc-support - A plugin for the Obsidian.md note-taking software
vim-sandwich - Set of operators and textobjects to search/select/edit sandwiched texts.
Neovim-from-scratch - 📚 A Neovim config designed from scratch to be understandable
delimitMate - Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
micro-editor - A modern and intuitive terminal-based text editor
vim-visual-multi - Multiple cursors plugin for vim/neovim
tabout.nvim - tabout plugin for neovim
ultisnips - UltiSnips - The ultimate snippet solution for Vim. Send pull requests to SirVer/ultisnips!
emmet-vim - emmet for vim: http://emmet.io/
limelight.vim - :flashlight: All the world's indeed a stage and we are merely players