Is there a way to easily create a text title in VI? I would like to create a heading like the one below without having to count the characters in order to center.
# ********** a centered title **********
Any vi voodoo you need to have? The best method?
You can center the current line using: center (in vim). Then use "R" to fill in the stars after the fact. Still not fast or magical, but at least it saves you from counting characters.
So the steps are:
"set expandtab", tabstops, , .
.exrc vi:
.exrc
vi
map £ A ^[80A£§^[080lD:s/§//g^M$byw0Pa ^[080lD:s/£/*/g^M0R# ^[^M
(Typing ^[ CTRL-V, ESC. ^M CTRL-V, ENTER)
^[
CTRL-V
ESC
^M
ENTER
:
£§
§
£
, , , £. , , @, : map @ ...
@
map @ ...
Source: https://habr.com/ru/post/1713241/More articles:SQL Filter Query - c #How to deal with forward declaration / # import in Cocoa correctly (? W480> cross C ++)? - objective-cHow to receive the Windows Power State Message (WM_POWERBROADCAST) when the Win32 GUI application does not start? - c ++How to add script specific lib path to mod_perl? - perlЗапись операторов MySQL DELETE - mysqlto implement RESTFUL webservice with php - restGetting parameters passed from zend php _forward - phpAccess to structure vectors - c ++Mailmerge using OpenOffice - c #BeansBinding, JGoodies Binding, JFace or Glazed Lists? - javaAll Articles