vim-snippets
ultisnips
Our great sponsors
vim-snippets | ultisnips | |
---|---|---|
16 | 55 | |
4,499 | 7,021 | |
- | - | |
7.0 | 4.6 | |
11 days ago | 7 days ago | |
Vim Snippet | Python | |
MIT License | GNU General Public License v3.0 only |
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).
ultisnips
-
Python36.dll not found
Heyo, I've been trying to get UltiSnips and YouCompleteMe to work, however, I've ran into a bit of a problem. The python36.dll library does not seem to exist for UltiSnips, and YouCompleteMe cannot locate python at all (screenshots at bottom).
-
I've been working on this CLI tool to automate creation of script files, modification of file permissions, and input typical text. I spend a lot of time in the command line for work, but consider myself still learning scripting. If you have any input I'd appreciate it!
for actual use, I suspect most editors have a snippets plugin or such that is generally much more powerful and interactive/visual; for example see https://github.com/SirVer/ultisnips
-
What's the best way to generate code?
I don't follow. What you're describing sounds like something akin to either Yeoman or UltiSnips and output-only tools like that don't need to care about whether two pieces of code are semantically equivalent.
-
Help me set up vim for linting and a file tree please and some other stuff
For boilerplate code I personally use UltiSnips. There might be a better plugin for specifically this, but hey, it works!
-
Why aren't there more plugins written in python?
For me it's about extra dependencies. It's not enough to just have Neovim, you also need Python and the pynvim package, plus whatever Python dependencies the plugin might have. It used to be a tradeoff worth it before we had built-in Lua, but now it doesn't really matter. The last everyday Python plugin I have is UltiSnips and I am currently evaluating nvim-snippy as a replacement.
There are some like https://github.com/SirVer/ultisnips and https://github.com/ms-jpq/coq_nvim. Speed is not really an issue, I guess people just prefer to have fewer dependencies and use lua which is already bundled in neovim.
-
Seeking for TeX snippets collection for replacing ultisnips
I'm seeking to move from ultisnips to another snippet provider like vim-vsnips or luasnips because of its poor support for neovim [https://github.com/SirVer/ultisnips/issues/801]. One reason stops me because ultisnips community contribute many awesome snippets for TeX like [https://castel.dev/post/lecture-notes-1],it's possible to do similar thing in other snippets manager? If yes, could anyone share their snippets so I can start from there?
-
Good plug-in for inserting snippets?
In terms of snippets plugins, the most popular and advanced is UltiSnips.
-
How could I make vim generate boilerplate from my php file every time I create a new file in my project?
But the generic way to do something like this would be to use a snippet plugin. UltiSnips https://github.com/SirVer/ultisnips is (probably?) the most popular but there are many of them out there.
You can use SirVer/ultisnips with a snippet like this:
What are some alternatives?
LuaSnip - Snippet Engine for Neovim written in Lua.
vim-vsnip - Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.
completion-nvim - A async completion framework aims to provide completion to neovim's built in LSP written in Lua
obsidian-vimrc-support - A plugin for the Obsidian.md note-taking software
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
emmet-vim - emmet for vim: http://emmet.io/
nvim-lspconfig - Quickstart configs for Nvim LSP
friendly-snippets - Set of preconfigured snippets for different languages.
vim-mucomplete - Chained completion that works the way you want!
vim-surround - surround.vim: Delete/change/add parentheses/quotes/XML-tags/much more with ease
vimtex - VimTeX: A modern Vim and neovim filetype plugin for LaTeX files.