local_vimrc
lh-vim-lib
local_vimrc | lh-vim-lib | |
---|---|---|
5 | 6 | |
125 | 194 | |
- | - | |
1.8 | 6.2 | |
over 3 years ago | 2 months ago | |
Vim Script | Vim Script | |
GNU General Public License v3.0 only | GNU General Public License v3.0 or later |
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.
local_vimrc
-
How can I have a local .vimrc file that is used only inside a certain directory?
Other approaches are available as well. For instance, autocommands in the .vimrc are possible as well, but every time you move around that directory you'd have to update the autocommand.
-
What is the best config/setup/plugins for C development in Vim?
Regarding project management, .exrc is enough as long we're working on simple project where everything is in the same directory. On real project I've ended up needing and writing much, much more.
-
manual ctags with vim-gutentags or similar
buffer wise, from a local vimrc for instance, with let b:tag_options = { 'no_auto': 0}
-
search and replace camelCase to snake_case
snake is one of the possible naming policies. Several are hard-coded: snake, UpperCamelCase, lowerCamelCase, SCREAMING_SNAKE_CASE. Other can be configured (in local vimrc plugins for instance), and then used where we can expect it to make sense: member variables, local variables, static variables, types, getter...
-
A per project vimrc based on direnv
I'm not sure about the new plugin advertised, but 'exrc' is restricted to the current directory. Its settings won't be applied to subdirectories -- unlike to what other localvimrc plugins do
lh-vim-lib
-
Setting a b: or g: variable in a modeline
and it seems it depends now on lh-vim-lib (to be able to set dictionaries: :let b:dict.key.subkey.whatever = 42: https://github.com/LucHermitte/lh-vim-lib (install it with your plugin manager)
-
How can I have a local .vimrc file that is used only inside a certain directory?
Note that if it's just for setting a few standard options, editorconfig will be enough for most of us. It won't work if you want to define different mappings, or if you want to change the path to your snippets (actually editorconfig plugin could be hijacked to set vim variables)
-
Does a "leader mode" plugin exist?
here an UI alternative to confirm() and another that implement comboboxes: https://github.com/LucHermitte/lh-vim-lib/blob/master/autoload/lh/ui.vim (the code is very old, but it works search for getchar())
-
What is the best config/setup/plugins for C development in Vim?
Regarding project management, .exrc is enough as long we're working on simple project where everything is in the same directory. On real project I've ended up needing and writing much, much more.
-
manual ctags with vim-gutentags or similar
or in your .editorconfig file (if you have any) as lh-vim-lib also registers an extension to set vim variables from editorconfig file -- it's definitively not meant to be used this way, but well it's possible.
-
tasks.vim - async jobs and tasks
I have things on the same topic in my vimscript library: I provide a queue object into which I register related tasks that cannot be safely parallelized.
What are some alternatives?
vimrc - The ultimate Vim configuration (vimrc)
lh-brackets - LH's bracketing system for vim
vim-abolish - abolish.vim: Work with several variants of a word at once
cquery - C/C++ language server supporting multi-million line code base, powered by libclang. Emacs, Vim, VSCode, and others with language server protocol support. Cross references, completion, diagnostics, semantic highlighting and more
lh-tags - ctags base updating, and browsing from vim
YouCompleteMe - A code-completion engine for Vim
clang_complete - Vim plugin that use clang for completing C/C++ code.
vim-libmodal - A Neo/vim plugin to create modes.
ale - Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
vim-submode - Vim plugin: Create your own submodes