Code Monkey home page Code Monkey logo

vim-ydict's Introduction

vim-ydict

vim-ydict is a Vim plugin for ydict, it helps you to query words from Vim.

Installation

vim-ydict relies on ydict, to use it, you need to install ydict first.

Use Homebrew to install ydict:

brew tap timothyye/tap
brew install timothyye/tap/skm

Or you can download it from the release page.

Now you can install vim-ydict.

Plug

Plug 'TimothyYe/vim-ydict'

Settings

vim-ydict supports 3 different query modes:

  1. Query words from current cursor position, supported by command :Ydc.
  2. Query selected words from the select mode, supported by command :Ydv.
  3. Query words from user's input, supported by command :Yde.

Examples

Edit your vimrc file, add example settings.

  1. Press Ctrl+t to query selected words:
vnoremap <silent> <C-T> :<C-u>Ydv<CR>
  1. Use <leader>+yc to query words from current cursor position:
nnoremap <leader>yc :<C-u>Ydc<CR>
  1. Use <leader>+yd to input the words you want to query:
noremap <leader>yd :<C-u>Yde<CR>

Demo

License

The MIT License (MIT)

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.