Ⅰ. 插件描述
Qt support for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'fedorenchik/qt-support-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'fedorenchik/qt-support-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'fedorenchik/qt-support-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/fedorenchik/qt-support.vim
Ⅳ. 文档说明
# Qt support for vim
Simple Qt support for Qt-based projects.
Installation:
Use your favourite package manager for Vim.
If you don't have a preferred installation method, I recommend using Vim's
native package management support, simply copy and paste:
mkdir -p ~/.vim/pack/bundle/start
cd ~/.vim/pack/bundle/start
git clone https://github.com/fedorenchik/qt-support.vim.git
Filetypes:
- C++
- qmake
- qml
- qbs
- qrc -- xml
- ui -- xml
- ts -- xml
Status:
| Language | File Type Detection | File Type Plugin | Syntax | Indent | Compiler | Plugin |
|---|---|---|---|---|---|---|
| Qt C++ | + (extend cpp) | + (extend cpp) | ||||
| qmake | + | + | + | |||
| qml | + | + | + | |||
| qbs | + | + | + | |||
| qrc | + (xml) | |||||
| ui | + (xml) | |||||
| ts | + (xml) |
Related works:
- https://github.com/vim-scripts/cpp.vim
- https://github.com/Townk/vim-qt
- https://github.com/kosl90/qt-highlight-vim
- https://github.com/vim-scripts/Qt.vim
- https://github.com/edlanglois/vim-qrc
- https://github.com/vim-scripts/qt2vimsyntax
- https://github.com/pavel-belikov/vim-qtcreator-tasks
- https://github.com/vim-scripts/qmake--syntax.vim
- https://github.com/pavel-belikov/vim-qmake
- https://github.com/artoj/qmake-syntax-vim
- https://github.com/suy/vim-qmake
- https://bitbucket.org/JohnKaul/qbs.vim
TODO:
- Add supported syntaxes to Syntax menu
- QtDoc
C++ Completion for Qt
- Generate compile_commands.json (for example: https://github.com/rizsotto/Bear)
- Set up LSP server (for example: https://github.com/cquery-project/cquery)
- Install & use LSP client for Vim
(https://github.com/autozimu/LanguageClient-neovim or