GithubHelp home page GithubHelp logo

pinyin's Introduction

Pinyin.vim

I kinda want to learn Chinese, so I wrote this to help write vowel tones.



Usage

In insert mode, press <ctrl>[h,j,k,l] to insert one of four tone mark on the most recent a, e, i, o, or u. This can be done either during or after after typing the word, so Biānchéng can be typed either as

Bia <ctrl>h nche <ctrl>j ng

or

Biancheng <ctrl>j <ctrl>h

v is a special case, auto-correcting to ü on the first <ctrl>key and one of ǖ, ǘ, ǚ, or ǜ on the second.



Configuration

To change the keys used for tones, add a line like the following to your .vimrc

let g:pinyin_keys = ['h','j','k','l']

Unfortunately due to a bit of an issue with the way vim works, <ctrl>[1-4] can't be used at the moment.



Installation

If you're reading this you've probably already got a plugin manager. If not, I recommend Vim-Plug, but they're essentially interchangeable. Add the appropriate line in the appropriate spot in your .vimrc file.

" vim-plug
Plug 'FraserLee/Pinyin'

" vundle
Plugin 'FraserLee/Pinyin'

" packer.nvim
use 'FraserLee/Pinyin'

" etc...

Run your version of :PlugInstall and things should be good to go.

pinyin's People

Contributors

fraserlee avatar

Watchers

 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.