vim-unitex : Superior alternative for vim's conceal feature
script karma |
Rating 4/1,
Downloaded by 110 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Juiyung Hsu |
|
script type |
utility |
|
description |
Git repository: https://github.com/juiyung/vim-unitex. You can see a screencast there (https://github.com/juiyung/vim-unitex/blob/master/demo.gif).
This plugin makes sophisticated use of the unitex program (https://github.com/juiyung/unitex) to create an effect resembling vim's syntax concealment for tex files. Through using a new mechanism, however, many drawbacks of the conceal feature are eliminated. If you like vim's conceal feature, this plugin is probably worth trying out, it's not only an alternative but also suitable for using in combination with the conceal feature.
This plugin takes a few more steps to set up than the general, but nothing about the steps is particularly complex. Once successfully deployed, I consider it easy and cool to use. If you feel interested, you can find its usage and more information in the README contained in the zip file, which you may also read in https://github.com/juiyung/vim-unitex#readme. Going through the README is well-recommended. |
|
install details |
Download the zip file and extract it under ~/.vim/pack/foo/start/ (the name "foo" is arbitrary; "~/.vim" is a default value for Unix-like systems, what suits your case depends on the 'runtimepath' option). You may also use vim-plug or vundle to install from "juiyung/vim-unitex".
unitex needs to be installed and configured. A quick guide for Unix-like systems: clone https://github.com/juiyung/unitex.git, enter the resulting directory, then "sudo make install" would install the program. You could then copy the rules.tsv file in the directory to ~/.config/unitex/ as a quick configuration ("~/.config" needs to be changed to $XDG_CONFIG_HOME if the environment variable is set differently). Refer to the README in unitex's repository if you have problems.
Vim's 'encoding', as well as the encoding of files you will work on using this plugin, should be utf-8. If you encounter problems, make sure to read the document carefully, open an issue in github if necessary. |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.135.213.214
|