How to install vim 7 html options for encoding "utf-8"?

I need to run tidy in vim using the usual:

:compile tidy

:make

However, if I am in the utf-8 file, I get errors that I do not see if I work neatly outside of vim, i.e.

tidy -e -q -utf8 <filename>

I get what I expect

+3
source share
1 answer

My Vim script skills don't go far enough to have a common solution, but what can you do when editing the utf-8 file:

:compiler tidy
:setlocal makeprg=<TAB> [and edit the tidy command line to include -utf8]
:make

Explanation:

": compile tidy" setlocal makeprg (-q -e -gnu-emacs yes). , utf-8 tidy -utf8, . : .

utf8, , , -utf8, . :

:e $VIMRUNTIME/compiler/tidy.vim
+1

Source: https://habr.com/ru/post/1706456/


All Articles