Skip to content

johngrib/vim-mac-dictionary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published