I installed clang_complete for vim,but it doesn't work. For example: When I typed std:: in a c++ file with vim, the bottom of vim's window shows that:
User defined completion (^U^N^P) Pattern not found
How can I solve this?
The common solution to this appears to be to add:
let g:clang_user_options='|| exit 0'
to your .vimrc file.
This problem was solved at the issue #178. This was in truth a problem with Clang, I've opened a bug report and it was promptly solved.
Also, I invite you to take a look at my setup.
Related
I have a problem with vscode if I run it on Wayland natively. Instead of appropriate icon I got a generic icon for Wayland applications as on screenshot.
I have tried to find a temporary solution editing .desktop files of vscode, but without success. As I know, the problem is in the wrong wmclass which sets on startup of vscode.
Upd:
I've got update from the AUR, which fixes all my issues)
I am struggling with this problem too.
I have tried to find solution and find a few issues
https://github.com/microsoft/vscode/issues/129953
Please check last messages at that discussion.
You can try to substitute value of WMClass with visual-studio-code of Code
StartupWMClass=code-url-handler
Also there is solution like this
"The problem can also be resolved by modifying the desktopName entry in /opt/visual-studio-code/resources/app/package.json to "desktopName": "visual-studio-code.desktop"" from that discussion too.
Vim "spf13" offer a plug-in that when you try to save the file in vim (:w), it will show all compile error on left(by red arrow). For example, when I open a ".cc" file and try to save it(:w), the vim will show all error information same as when you "g++" it. but some of my code use c++14 style(e.g.: shared_ptr). So I want change the default compiler of this plug-in to g++ -std=c++14. (I don't know the plug-in name), so what should I do?
From what I could find, spf13 is basically just vim preconfigured with other plugins that exist already. So your real question isn't about spf13, but the syntax checking plugin that it uses, which appears to be Syntastic. For a quick fix let g:syntastic_cpp_compiler_options = ' -std=c++14' should probably do the trick. I would recommend looking more into syntastic's settings so you can configure it on a per-project basis with .syntastic files.
If you are feeling a little more ambitious to break out of the plugins spf13 comes pre-configured with, I have become a fan of ALE: The Asyncronous Lint Engine which makes use of Vim8's jobs to lint in the background instead of freezing while it lints.
I'm using YouCompleteMe on MacVim, and it's showing this message with pretty much every keystroke. Is there any way to suppress this error message specifically? Any help would be greatly appreciated, thanks!
In particular, older Vim versions do not allow to cancel custom insert-mode completion silently via special return values -2 and -3 returned by 'completefunc'. This feature has been specifically included for plugins like YouCompleteMe.
This issue has been fixed in the latest versions of Vim, I'm using version 7.4.383 now and the issue has been resolved.
My Gvim often stop working on Windows7:
I download a prebuilt gvim version, I forgot the link page.
I use Vundle as my vim plugin manager:
Please help me...
Sometimes I type a little fast, I cannot realize what I have type.
Maybe I press some error key which caused the gvim stop.
But I don't know what key will cause the gvim stop.
Your Vim version 7.4.280 is a development snapshot; it is not a stabilized version. Either move back to this MR version (and hope that the problem isn't there), or regularly update to the latest available build. Ideally, you'll then debug into / collect stacktraces in case of crashes, and report this problem, so that the devs can do something about it.
Thanks to #Ingo Karkat recommandation.
I download another prebuild gvim for windows version.
I find a very good all-in-one gvim for windows on Bitbucket:
https://bitbucket.org/Alexander-Shukaev/vim-for-windows/downloads
This gvim support lua/python2.7.x/python3.4.x/ruby/perl, and it include all the lua52.dll/python27.dll/python34.dll/... files. So vimers do NOT have to download the matchde version script dll files.
I think this will meet most of vimer's need.
When i try to write import org.junit.Test, just when I have completed writing import.jun it converts(auto-completes) it to import org.jun=acp#onPopupPost().
Is it some eclim autocomplete feature which is misbehaving or something else? I only face this issue when I am inside a project opened via eclim. Other wise there is no issue.
Looks like you have a problem with the AutoComplPop plugin; part of its mapping is inserted literally. I'm using the plugin myself, but haven't seen that issue. It may be interference with another plugin; have you done any updates to other plugins recently?! If you can reproduce the problem with a clean .vimrc and no other plugins loaded, submit an issue to the author.
To temporarily disable the plugin (without uninstalling), put the following into your ~/.vimrc:
let g:loaded_acp = 1