Syntax match : Saving syntax match rules to be loaded next time
| script karma
Downloaded by 764
Comments, bugs, improvements
script versions (upload new version)
|If you do log investigation itís handy to differentiate identifiers with colors.
When you close Vim and later open the log file again itís fine to have preserved the colors.
This plugin offers functionality to save syntax match rules to an auxiliary file placed beside of file with the original content. Then the syntax highlighting can be restored when the file is opened later by loading from the auxiliary file.
Beside of having capability to restore defined syntax match rules when specific files is opened again the plugin can solve trouble of saving multiple color highlight matches. The Vim match command (:match Comment /pattern/) provides only one pattern at a time. When using match again the previously highlighted text is decolorized. Sure there are commands 2match and 3match but it could not be enough - e.g. if you want to add highlighting dynamically for different regexp patterns (e.g. some identifiers in a log file).
See more at
|The easiest way to install is use pathogen plugin - see http://www.vim.org/scripts/script.php?script_id=2332
mkdir -p ~/.vim/autoload ~/.vim/bundle
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
add line execute pathogen#infect() to your ~/.vimrc file
Now the installation of this plugin is easy
git clone firstname.lastname@example.org:ochaloup/vim-syntax-match.git ~/.vim/bundle/vim-syntax-match
Click on the package to download.
ip used for rating: 126.96.36.199
||* adding foreground colors highlights (e.g. commands YF <pattern>/Yellowfg, GF <pattern>/Greenfg, ...)
* adding function to call highlighting on all opened buffers (commands like :YA <pattern> (yellow highlight on all buffers), similarly then GA, BA, ...)
* adding user command SCB which aliases call of windo scroll bind as scroll binding on all opened windows
* adding command ClearAllSyntax which remove all syntax hightlighting from all opened buffers
* adding a docker file for testing the plugin functionality