Ⅰ. 插件描述
indent/cmake.vim and syntax/cmake.vim exist, but no dict/cmake.txt exist yet. This is it.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'ujihisa/ft-cmake'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'ujihisa/ft-cmake'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'ujihisa/ft-cmake'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/ujihisa/ft-cmake
Ⅳ. 文档说明
# filetype cmake vim plugin
NeoBundle 'ujihisa/ft-cmake'
Assumptions
You have indent/cmake.vim and syntax/cmake.vim, and also when you edit CMakeLists.txt the &filetype is "cmake".
Usage
<C-x><C-k> in insert mode to use dictionary completion (Vim's builtin feature.)
References
Keywords in dict/cmake.vim are from http://www.cmake.org/Wiki/CMake_Useful_Variables
Technical details
dict/cmake.txt
require 'nokogiri'
require 'open-uri'
x = open('http://www.cmake.org/Wiki/CMake_Useful_Variables').read
n = Nokogiri::HTML(x)
puts (n / 'dt').map(&:text).map(&:strip).sortand some manual tweaks
License
GPLv3 or any later version.