Vim displays json file without quotes

I have a verified JSON file that will display in Vim without quotes. The only time it displays the json file correctly is in visual mode.

I tried disabling eslint, jshint, youcompleteme

OS X MacVim 7.4 Vim 7.4 in terminal

enter image description here

enter image description here

+6
source share
2 answers

The built-in $VIMRUNTIME/syntax/json.vimuses the Vim hide function to hide quotation marks, supposedly to remove unnecessary clutter.

You must enable hiding by setting the option 'conceallevel'to 2or 3; defaults to 0(off). Similarly, you see quotation marks in visual mode due to the setting 'concealcursor'.

JSON , :

:verbose set conceallevel? concealcursor?

.

+13

, "", .

conceallevel = 1 " ( ), , json .

0

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


All Articles