linglang : Dynamically switch languages/settings in multi-lingual documents
| script karma
Downloaded by 715
Comments, bugs, improvements
script versions (upload new version)
|The command |:Linglang| installs a buffer-local autocommand that checks
the current line's language. I.e. enabling linglang for the current
buffer won't affect other buffers. If the language of the line under the
cursor changes, a user-defined action (e.g., set spelllang) will be
:Linglang[!] [LANGS ...]
Toggle linglang support for the current buffer.
With [!], suppress message.
- German (latin1, utf8)
In order to add a new language, you'll have to come up with some good
words/regexps to identify it.
Language data is stored in .../autoload/linglang/LANGUAGE.ENCODING
The fileformat is simple:
- one word per line (these will be matched against word borders)
- arbitrary regular expressions: /REGEXP/
|Edit the vba file and type:
See :help vimball for details. If you have difficulties or use vim 7.0,
please make sure, you have the current version of vimball
(vimscript #1502) installed or update your runtime.
This script requires hookcursormoved (vimscript #2037) to be installed.
Also available via git
Click on the package to download.
ip used for rating: 184.108.40.206
||- Language patterns are stored in .../autoload/linglang/LANGUAGE.ENCODING
- Respect encoding
- Removed variables: g:linglang_words, g:linglang_patterns, g:linglang_filetypes