Created
February 22, 2017 13:11
-
-
Save bigdragon1977/b4894923b0809c3daec793352805421f to your computer and use it in GitHub Desktop.
Qt 5 Linguist: использование Vim для проверки орфографии
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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