Ⅰ. 插件描述
Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'johngrib/vim-mac-dictionary'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'johngrib/vim-mac-dictionary'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'johngrib/vim-mac-dictionary'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/johngrib/vim-mac-dictionary
Ⅳ. 文档说明
# vim-mac-dictionary
A Vim plugin that helps you find words using Mac's dictionary app.


Installation
- This plug-in is only available for MacOS.
VimPlug
Place this in your .vimrc:
Plug 'johngrib/vim-mac-dictionary'Then run the following in Vim:
:source %:PlugInstallSelect a dictionary to use
- Launch the built-in dictionary app on your Mac.
- Enter
command +,to enter the setting screen. Drag the mouse over the dictionary you want to use and put it on the top line.
- Please be sure to set it because it will show only the search result of the dictionary in the top row.


How To Use
- Place the cursor on a word and type
:MacDictWordto find the dictionary. - type
:MacDictQueryand then type the word you want to search for, it will find the dictionary.
You can register shortcuts in the following ways:
nnoremap <C-p> :MacDictWord<CR>
nnoremap <C-S-p> :MacDictQuery<CR>Configuration
Do not using formatted result
" shows the raw string from the dictionary
let g:vim_mac_dictionary_use_format = 0View in app
let g:vim_mac_dictionary_use_app = 1