Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.24 KB

README.md

File metadata and controls

51 lines (33 loc) · 1.24 KB

Phonetics.vim

A Vim plugin for:

  • 📖 Checking phonetics
  • 🎧 Listening to phonetics

Introduction

Vim Phonetics is a vim plugin that gives you English phonetic transcriptions of focused words. You can choose between British English and American English. You can also listen to audio associated to transcriptions.

The phonetics (transcription and audio) comes from Oxford Learner's Dictionnaries.

Prerequisites

  • cURL to retrieve audios and phonetics
  • mpv to play audios

Installation

Plug 'soywod/vim-phonetics'

Usage

Put your cursor under a word, then:

  • :Phonetics to get the transcription
  • :PhoneticsPlay to get the transcription and to play the sound

You can also specify the desired accent:

  • :Phonetics american to get the American transcription
  • :PhoneticsPlay british to get the British transcription and play the sound

Configuration

To set a default accent:

let g:phonetics_default_accent = 'american' | 'british'

Default value: british