Giter VIP home page Giter VIP logo

vim-online-thesaurus's Introduction

Vim Online Thesaurus

This is a plugin for Vim allowing you to look up words in an online thesaurus, which is at the moment configured to be http://thesaurus.com/

The plugin displays the definition of the word under the cursor and a list of synonyms.

The credit for the original idea and code goes to Nick Coleman: http://www.nickcoleman.org/

Installation

If you are using Vundle, just add the following line to your .vimrc:

Plugin 'beloglazov/vim-online-thesaurus'

Then run :PluginInstall to install the plugin.

Note: Earlier versions required the "Bundle" keyword instead of plugin (i.e. :BundleInstall and Bundle 'beloglazov/vim-online-thesaurus'). However, this is deprecated and should not be used any longer.

Usage

The plugin provides the :OnlineThesaurusCurrentWord command to look up the current word under the cursor in an online thesaurus. Alternatively, you can look up any word with :Thesaurus word.

Internally, both commands make a request to http://thesaurus.com/, parse the results, and display them in a vertical split in the bottom.

By default the :OnlineThesaurusCurrentWord command is mapped to <LocalLeader>K. If you haven't remapped <LocalLeader>, it defaults to \. To close the split, just press q.

Configuration

If you want to disable the default key binding, add the following line to your .vimrc:

let g:online_thesaurus_map_keys = 0

Then you can map the :OnlineThesaurusCurrentWord command to anything you want as follows:

nnoremap <your key binding> :OnlineThesaurusCurrentWord<CR>

Enjoy!

Contributors

Big thanks to the following people who contributed to the development of this plugin!

License

Copyright (c) Anton Beloglazov, Google Inc. Distributed under the Apache 2.0 License.

vim-online-thesaurus's People

Contributors

beloglazov avatar blablatros avatar derekschrock avatar justincampbell avatar ron89 avatar shurakai avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.