This team
%s#^#/*
and this team
%s#$#*/
works fine in the vi editor on ubuntu 14.04 when I execute them separately one by one.
I need to execute them as in one line, for example
%s#^#/* <bar> %s#$#*/
I also tried | and ; and CR as a separator and always get error 488 trailing character
In my vim 7.4 patch 769 this works very well.
:%s/foo/FOO/ | %s/bar/BAR/
, . Vim , , #. , vim , .
#
, , :
:%s/foo/FOO/ | %s#bar#BAR
, , . . & :
&
:s#.*#/* & */
Source: https://habr.com/ru/post/1656455/More articles:Java Add special buttons - javaDifference gevent and multiprocess - pythonЕсть ли какой-либо синтаксис или команда в php, чтобы проверить, является ли число в наборе чисел? - comparisonHow does range-v3 `partial_sum` not contradict non-referenced semantics? - c ++React js with browser and download error - javascriptPerl DBI :: fetchrow_array () gives an empty value instead of undef for NULL - mysqlThe sequence "HIBERNATE_SEQUENCE" was not found; SQL statement - springInstalling FileReaderSync in Angular2 - angularДатчик местоположения Android Delphi не работает, если после запуска приложения разрешено размещение - androidEntity Framework GroupBy for Sql Generation - c #All Articles