neocomplete-ios-dictionary


Ⅰ. 插件描述

ios keyword dictionary for vim and neocomplete

Ⅱ. 基本信息

创建日期:  2014-04-27
使用用户:  4
Github星:  3
插件作者:  tokorom

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'tokorom/neocomplete-ios-dictionary'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'tokorom/neocomplete-ios-dictionary'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'tokorom/neocomplete-ios-dictionary'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/tokorom/neocomplete-ios-dictionary

Ⅳ. 文档说明

neocomplete-ios-dictionary

ios keyword dictionary for vim and neocomplete

<p align="center"></p>

.vimrc Samples

.vimrc for use only ios.dict

NeoBundle 'tokorom/neocomplete-ios-dictionary'

call neocomplete_ios_dictionary#configure_ios_dict()

set complete+=k

.vimrc with neocomplete

NeoBundleLazy 'tokorom/neocomplete-ios-dictionary', {'depends' : 'Shougo/neocomplete.vim', 'on_source': 'neocomplete.vim'}

How to made ios.dict

# keywords from docset

cd ~/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.AppleiOS7.0.iOSLibrary.docset/Contents/Resources/Documents/documentation
 
find . -name "*.html" | xargs egrep -o '[a-zA-Z][a-zA-Z0-9_]{3,}[a-zA-Z0-9]' | sed '/\//d' | sort | uniq > keyword.txt
find . -name "*.html" | xargs egrep -o '[a-zA-Z][a-zA-Z0-9_:]{3,}:' | sed '/\//d' | sort | uniq > method.txt

# method definitions from header files

cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/Frameworks
 
find . -name "*.h" | xargs egrep -o '[-+]\s+\([^/]*;' | egrep -o '[-+]\s+.*' | sort | uniq > method_definitions.txt

# concat files

cat keyword.txt method.txt method_definitions.txt > ios.dict

Wish list

  • Remove keywords that wasted clearly

添加新评论