luchermitte / lh-cpp Goto Github PK
View Code? Open in Web Editor NEWC&C++ ftplugins suite for Vim
License: Other
C&C++ ftplugins suite for Vim
License: Other
When I use VimPlug to manage my vim plugins, lh-cpp does not seem to work well
With a minimal vimrc file like below, there are lots of errors printed, see below.
Should it be configured differently when using vimplug?
call plug#begin('~/.vim/plugged')
Plug 'LucHermitte/lh-vim-lib'
"Plug 'LucHermitte/lh-style'
Plug 'LucHermitte/lh-tags'
Plug 'LucHermitte/lh-dev'
Plug 'LucHermitte/lh-brackets'
Plug 'LucHermitte/searchInRuntime'
Plug 'LucHermitte/mu-template'
Plug 'tomtom/stakeholders_vim'
Plug 'LucHermitte/alternate-lite'
Plug 'LucHermitte/lh-cpp'
"Plug 'LucHermitte/vim-refactor' " C++ refactoring
call plug#end()
[:] $ vim -u test.vim] $ vim -u test.vim
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/let.vim:
line 33:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_let")
line 34:
E10: \ should be followed by /, ? or &
line 35:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/lh-project.vim:
line 20:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_lh_project")
line 21:
E10: \ should be followed by /, ? or &
line 22:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/lhvl.vim:
line 29:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_lhvl")
line 30:
E10: \ should be followed by /, ? or &
line 31:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-style/plugin/lh-style.vim:
line 18:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_lh_style")
line 19:
E10: \ should be followed by /, ? or &
line 20:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/add_import.vim:
line 26:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_add_import")
line 27:
E10: \ should be followed by /, ? or &
line 28:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/boundaries.vim:
line 18:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_boundaries")
line 19:
E10: \ should be followed by /, ? or &
line 20:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/dev.vim:
line 18:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_dev")
line 19:
E10: \ should be followed by /, ? or &
line 20:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/alternate-lite/plugin/alternate-lite.vim:
line 25:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_alternate_lite")
line 26:
E10: \ should be followed by /, ? or &
line 27:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/mu-template/after/plugin/mu-template.vim:
line 409:
E10: \ should be followed by /, ? or &
line 410:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue
[:
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/let.vim:
line 33:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_let")
line 34:
E10: \ should be followed by /, ? or &
line 35:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/lh-project.vim:
line 20:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_lh_project")
line 21:
E10: \ should be followed by /, ? or &
line 22:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/lhvl.vim:
line 29:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_lhvl")
line 30:
E10: \ should be followed by /, ? or &
line 31:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/add_import.vim:
line 26:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_add_import")
line 27:
E10: \ should be followed by /, ? or &
line 28:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/boundaries.vim:
line 18:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_boundaries")
line 19:
E10: \ should be followed by /, ? or &
line 20:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/dev.vim:
line 18:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_dev")
line 19:
E10: \ should be followed by /, ? or &
line 20:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/alternate-lite/plugin/alternate-lite.vim:
line 25:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_alternate_lite")
line 26:
E10: \ should be followed by /, ? or &
line 27:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/mu-template/after/plugin/mu-template.vim:
line 409:
E10: \ should be followed by /, ? or &
line 410:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue
[:] $] $ vim -u test.vim
[:
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/let.vim:
line 33:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_let")
line 34:
E10: \ should be followed by /, ? or &
line 35:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/lh-project.vim:
line 20:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_lh_project")
line 21:
E10: \ should be followed by /, ? or &
line 22:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/lhvl.vim:
line 29:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_lhvl")
line 30:
E10: \ should be followed by /, ? or &
line 31:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/add_import.vim:
line 26:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_add_import")
line 27:
E10: \ should be followed by /, ? or &
line 28:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/boundaries.vim:
line 18:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_boundaries")
line 19:
E10: \ should be followed by /, ? or &
line 20:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/dev.vim:
line 18:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_dev")
line 19:
E10: \ should be followed by /, ? or &
line 20:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/alternate-lite/plugin/alternate-lite.vim:
line 25:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_alternate_lite")
line 26:
E10: \ should be followed by /, ? or &
line 27:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/mu-template/after/plugin/mu-template.vim:
line 409:
E10: \ should be followed by /, ? or &
line 410:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue
As I'm using #pragma once
instead of #ifndef
, I tried to change the C++ template file cpp_BuildTemplates.vim
on lines 227, 228 and 327, 328 accordingly. Unfortunately this does not seem to work. What did I miss?
I mapped my <C-Space>
to something I use fairly often, thus whenever ftplugin/c/previewWord.vim loads, there is an error (which appears whenever I open a C file) because it tries to redefine <C-Space>
in line 43.
For the list here https://github.com/LucHermitte/lh-cpp/blob/master/ftplugin/c/word.list,
printf and socket are all normal functions in c language,why not add them in the word.list?
I was an existing user of nacitar/a.vim and I did not realize that it is basically being provided by lh-cpp as well. When I have both plugins enabled, the :A
command seems to always want to create a new file (even when a valid alternate exists). I'm not sure what the specific problem is, but it seems that just disabling the nacitar/a.vim plugin makes things work again.
I'm not sure what the best long-term fix for this issue is, but I thought I would report the issue for you consideration.
I've been trying out your extensive plugin, but notice that no matter what value I set 'g:c_nl_before_curlyB' to, or where I put the setting, I always get:
if () {
}
instead of my desired:
if ()
{
}
Thanks!
I believe I have everything set up correctly, however I'm getting the following error when I execute :GOTOIMPL on a method declaration in a header file:
Error detected while processing function lh#cpp#GotoFunctionImpl#GrabFromHeaderPasteInSource[39]..<SNR>163_BuildFunctionSignature4impl[57]..lh#dev#start_tag_session[6]..lh#dev#__BuildCrtBufferCtags:
line 47:
E121: Undefined variable: ctags_has_end_of_functions
E15: Invalid expression: ctags_has_end_of_functions
Theoretically the variable should be defined here, in autoload/lh/dev.vim:
" Function: lh#dev#get_variables(function_boundaries [, split points ...]) {{{2
" NB: In C++, ctags does not understand for (int i=0...), and thus it can't
" extract "i" as a local variable ...
" @note depend on tags
if lh#tags#ctags_flavour() =~ 'utags'
let c_ctags_understands_local_variables_in_one_pass = 1
let cpp_ctags_understands_local_variables_in_one_pass = 1
let ctags_has_end_of_functions = 1
else
let c_ctags_understands_local_variables_in_one_pass = 0
let cpp_ctags_understands_local_variables_in_one_pass = 0
let ctags_has_end_of_functions = 0
endif
For some reason this does not happen, none of the three variables above is defined in my vim session. lh#tags#ctags_flavour() evaluates to "etags" on my system. I'm using VIM 8.1. Any ideas where this problem could be coming from?
Being prompted to set mod!
What are the initial common settings to include in .vimrc file to get lh-cpp running?
:DOX
command on parameters such as int *foo
does not correctly recognize distinguish the type and the variable.
It sees int
as the type, and *foo
as the variable.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.