vim-mac-dictionary


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2018-11-06
使用用户:  1
Github星:  9
插件作者:  JohngRib Lee

Ⅲ. 安装方法

使用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

English 한국어

A Vim plugin that helps you find words using Mac's dictionary app.

dict

dictk

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 %
:PlugInstall

Select a dictionary to use

  1. Launch the built-in dictionary app on your Mac.
  2. Enter command +, to enter the setting screen.
  3. 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.

setting

setting

How To Use

  • Place the cursor on a word and type :MacDictWord to find the dictionary.
  • type :MacDictQuery and 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 = 0

View in app

let g:vim_mac_dictionary_use_app = 1

添加新评论