cquery
local_vimrc
cquery | local_vimrc | |
---|---|---|
1 | 5 | |
2,328 | 125 | |
- | - | |
0.3 | 1.8 | |
almost 4 years ago | over 3 years ago | |
C++ | Vim Script | |
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.
cquery
-
What is the best config/setup/plugins for C development in Vim?
<< But why? What's wrong with coc? What's wrong with YCM? Why not vim-lsp? Did you try completion from ALE? Why not syntaxcomplete? What's wrong with shipped-in ccomplete? What about OmniCppComplete? Have you tried clang_complete? Which server do you use? clangd? cquery? CCLS? Other? >>
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
What are some alternatives?
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
vimrc - The ultimate Vim configuration (vimrc)
glsl-language-server - Language server implementation for GLSL
vim-abolish - abolish.vim: Work with several variants of a word at once
OmniCppComplete - Vim C/C++ omni-completion with ctags database
lh-tags - ctags base updating, and browsing from vim
vim-lsc - A vim plugin for communicating with a language server
clang_complete - Vim plugin that use clang for completing C/C++ code.
lh-vim-lib - Library of Vim functions
ale - Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
YouCompleteMe - A code-completion engine for Vim
Vim - The official Vim repository