When i open the file
:e x
and change its file type
:set ft=plsql
I see the effect of setting the file type, because the keywords in the buffer are highlighted according to the type of file (syntax) that I just installed.
Then I open another file
:e y
and go back to the file where I set the file type
:e #
keyword selection is lost, although the file type is still valid.
:set ft?
confirms that the file type is plsql.
So, how can I make vim so that it keeps highlighting when I go back to the file?
, set nohidden (, , set hidden). , , -, . , :e y Vim x. :e #, x: . , filetype, , .
set nohidden
set hidden
x
filetype
set hidden, y x, , :e # , x ( filetype > set). Vim , , ( Vim, - , ).
y
: . set hidden. .
Source: https://habr.com/ru/post/1535875/More articles:How to use grep in IPython? - pythonHow to make a variable-length sound in Android - androidDjango objects.filter does not update the field, but object.get - pythonC confuses the program - cHow to execute and display the sequence of operations in PHP? - jqueryHow to add a value to the search field? - c #Do R wait for console entry? - rTrackballControls rotate only on the Z axis - javascriptPseudo-element CSS dynamically using JavaScript - jqueryTypeError: неподдерживаемый тип операндов дляAll Articles