Wiki

by yszheda

View project onGitHub

Tip 120: Add Words to the Spell File

Return to the top: <<Practical Vim>>

References:

# If you open the file in vim,
# then you can \"ayy@a the next line to execute the vim command: 
:h zg

Create a Spell File for Specialist Jagon

Example:

setlocal spelllang=en_us
setlocal spellfile=~/.vim/spell/en.utf-8.add
setlocal spellfile+=~/books/practical_vim/jargon.utf-8.add
  • 1zg: add the current word to the default word list (~/.vim/spell/en.utf-8.add)
  • 2zg: add the current word to ~/books/practical_vim/jargon.utf-8.add