lh-vim-lib
lh-misc
lh-vim-lib | lh-misc | |
---|---|---|
6 | 3 | |
194 | 17 | |
- | - | |
6.2 | 6.2 | |
2 months ago | 20 days ago | |
Vim Script | Vim Script | |
GNU General Public License v3.0 or later | 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.
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.
lh-misc
-
Setting a b: or g: variable in a modeline
the plugin file to drop in ~/.vim/plugin/: https://github.com/LucHermitte/lh-misc/blob/master/plugin/let-modeline.vim
-
Example of compile_flags.txt for windows
Note: as I often install clang on machines where I'm not root, I often have to feed these paths to the LSP server I use, or even to libclang. In the end, I automatically ask the pathnames after Vim has started (system() cannot be used directly in the vimrc), and feed them to ccls (through coc).
-
Coding in C++
First if your installation of clang+libc++ is non standard (/usr/(local/)), you'll have to register the path to the system includes (which can be automated).
What are some alternatives?
lh-brackets - LH's bracketing system for vim
Bear - Bear is a tool that generates a compilation database for clang tooling.
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
local_vimrc - Per project/tree configuration plugins
lh-tags - ctags base updating, and browsing from vim
coc-clangd - clangd extension for coc.nvim
YouCompleteMe - A code-completion engine for Vim
clangd - clangd language server
vim-libmodal - A Neo/vim plugin to create modes.
nerdtree - A tree explorer plugin for vim. [Moved to: https://github.com/preservim/nerdtree]
vim-submode - Vim plugin: Create your own submodes
nerdtree - A tree explorer plugin for vim.