Skip to content

Instantly share code, notes, and snippets.

@bigdragon1977
Created February 22, 2017 13:11
Show Gist options
  • Select an option

  • Save bigdragon1977/b4894923b0809c3daec793352805421f to your computer and use it in GitHub Desktop.

Select an option

Save bigdragon1977/b4894923b0809c3daec793352805421f to your computer and use it in GitHub Desktop.
Qt 5 Linguist: использование Vim для проверки орфографии
#http://freemapping.blogspot.com/2015/12/qt-5-linguist-vim.html
set spell spelllang=ru,en_us
===
set nospell
menu Spell.off :setlocal spell spelllang=<CR<:setlocal nospell<CR>
menu Spell.Russian+English :setlocal spell spelllang=ru,en_us<CR>
menu Spell.Russian :setlocal spell spelllang=ru<CR>
menu Spell.English :setlocal spell spelllang=en_us<CR>
menu Spell.-SpellControl- :
menu Spell.Word\ Suggest<TAB>z= z=
menu Spell.Add\ To\ Dictionary<TAB>zg zg
menu Spell.Add\ To\ TemporaryDictionary<TAB>zG zG
menu Spell.Remove\ From\ Dictionary<TAB>zw zw
menu Spell.Remove\ From\ Temporary\ Dictionary<TAB>zW zW
menu Spell.Previous\ Wrong\ Word<TAB>[s [s
menu Spell.Next\ Wrong\ Word<TAB>]s ]s
map :emenu Spell.<TAB>
==================
#~/.vim/syntax/ts.vim
set filetype=xml
syn region xmlString contained start=+"+ end=+"+ contains=xmlEntity,@NoSpell display
syn region xmlString contained start=+'+ end=+'+ contains=xmlEntity,@NoSpell display
syn region xmlTranslation
\ start=+<translation>+
\ end=+</translation>+
\ matchgroup=xmlEndTag end=+/>+
\ fold
\ contains=xmlTag,xmlEndTag,xmlCdata,xmlRegion,xmlComment,xmlEntity,xmlProcessing,@xmlRegionHook,@Spell
\ display
\ keepend
\ extend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment