Looking up word under the cursor in Vim in OS X default dictionary
When you have two displays and one of them serve as a distractless environment for writing, make use of the second for a quick look up of word under the cursor. MacDict comes to help you. First install it:
Plug 'jonhiggs/MacDict.vim'
Then use this binding so that it is easily available at your fingertips (I switched from <kbd>\\</kbd> to <kbd>,</kbd> as the leader key).
map <leader>d "dyiw:call MacDict(@d)<CR>
Written by Wojtek Ryrych
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#