vim-snippets
vim-mucomplete
Our great sponsors
vim-snippets | vim-mucomplete | |
---|---|---|
16 | 14 | |
4,499 | 888 | |
- | - | |
7.0 | 0.0 | |
5 days ago | 4 months ago | |
Vim Snippet | Vim Script | |
MIT License | 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-mucomplete
-
Vimscript devel support for Vim?
You can use mucomplete plugin with built-in vim command completion (suggested by @Fantastic_Cow7272) added to completion chain
-
NVIM: More complete autocomplete
If you have a LSP client providing an omnicomplete function (such as vim-lsp), you can use mucomplete to enable "completion as you type". That setup is both Vim and Neovim compatible! :)
-
Is there autocomplete plugin similar to default autocomplete in sublime text? Keyword autocomplete, without actually running language server.
I use the mucomplete plugin, which makes Vim's builtin completions feel more Sublime-like.
-
Automatic omnicompletion (without hitting c-x c-o)
Thanks for the suggestion. This set me on the right track - nvim-cmp didn't integrate well with my other plugins, but I found a very similar plugin called vim-mucomplete. Works out of the box and is equally minimal. Can also be configured for compatibility with stuff like UltiSnips.
-
Sublime text like autocomplete in vim
There are plugins that may improve this experience for you, like supertab, vimcompletesme, or vim-mucomplete. You can find more completion plugins here.
-
what are the silliest mistakes you have made when you first started using vim?
There's a plugin, vim-mucomplete, that is built around combining some of the Ctrl-X bindings with, of which there are many. I used mucomplete to learn what all the various functions do and then uninstalled it, because I found the individual bindings easier to remember.
-
LSP: add missing imports on complete using the built-in omnifunc
I think the best solution to get snippets working with native completion would be something like MUcomplete, which can integrate with a bunch of snippet plugins. I personally prefer to keep control over what kind of completion I see, but MUcomplete is quite good.
-
The question its simple: Wich autocompletion plugin would you recommend now a days
mucomplete
-
Vim Configuration from Minimal to Complete
diff --git a/.vimrc b/.vimrc index 7f727b8..65a4c7a 100644 -------- a/.vimrc +++ b/.vimrc @@ -148,6 +148,7 @@ silent function! WINDOWS() endfunction set omnifunc=syntaxcomplete#Complete +set spell " Smart mapping for tab completion " https://vim.fandom.com/wiki/Smart_mapping_for_tab_completion @@ -172,4 +173,4 @@ function! Smart_TabComplete() endif endfunction -inoremap =Smart_TabComplete() +" inoremap =Smart_TabComplete() diff --git a/bin/plugins.sh b/bin/plugins.sh old mode 100644 new mode 100755 index 23d88c2..ab903ec -------- a/bin/plugins.sh +++ b/bin/plugins.sh @@ -6,4 +6,15 @@ fi cd ~/.vim/pack/bundle/start -git clone --depth 1 https://github.com/lifepillar/vim-mucomplete.git +git_plugins=( "tpope/vim-sensible" "lifepillar/vim-mucomplete" "tpope/vim-fugitive" "tpope/vim-commentary" "tpope/vim-surround" "tpope/vim-vinegar" "tpope/vim-sleuth" "tpope/vim-obsession" "raimondi/delimitmate" "ctrlpvim/ctrlp.vim" ) + +for plugin in "${git_plugins[@]}"; do + folder=$(echo $plugin | cut -d'/' -f2) + if [ ! -d "$folder" ]; then + git clone --depth 1 "https://github.com/$plugin.git" + else + cd "$folder" + git fetch origin + cd .. + fi +done
-
Why Does My Tab Complete Function Not Work
mucomplete is similar, and looks like it offers a bit more control at the cost of complexity.
What are some alternatives?
obsidian-vimrc-support - A plugin for the Obsidian.md note-taking software
vim-lsp - async language server protocol plugin for vim and neovim
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
ultisnips - UltiSnips - The ultimate snippet solution for Vim. Send pull requests to SirVer/ultisnips!
emmet-vim - emmet for vim: http://emmet.io/
VimCompletesMe - You don't Complete Me; Vim Completes Me! A super simple, super minimal, super light-weight tab completion plugin for Vim.
vim-surround - surround.vim: Delete/change/add parentheses/quotes/XML-tags/much more with ease
nvim-lspconfig - Quickstart configs for Nvim LSP
supertab - Perform all your vim insert mode completions with Tab
snippets.nvim
vim-sleuth - sleuth.vim: Heuristically set buffer options