Changes

Jump to navigation Jump to search
13 bytes removed ,  16:16, 6 November 2016
no edit summary
Vim allows you to define abbreviations for frequently used pieces of text (see <tt>:help abbreviations</tt>).
Here are a few examples:
<pre>iab <buffer> ch. \startchapter[title={<c-o>ma}]<cr><c-o>mb<cr>\stopchapter<esc><nowiki>`</nowiki>b`aa iab <buffer> s. \startsection[title={<c-o>ma}]<cr><c-o>mb<cr>\stopsection<esc>`b`aa iab <buffer> ss. \startsubsection[title={<c-o>ma}]<cr><c-o>mb<cr>\stopsubsection<esc>`b`aa iab <buffer> sss. \startsubsubsection[title={<c-o>ma}]<cr><c-o>mb<cr>\stopsubsubsection<esc>`b`aa iab <buffer> slide. \startslide[title={<c-o>ma}]<cr><c-o>mb<cr>\stopslide<esc>`b`aa iab <buffer> fig. \startplacefigure<cr><tab>\externalfigure[<c-o>ma]%<cr>[]<c-o>mb<cr><c-d>\stopplacefigure<esc>`b`aa iab <buffer> item. \startitemize<cr><cr>\stopitemize<up><tab>\item iab <buffer> enum. \startitemize[n]<cr><cr>\stopitemize<up><tab>\item iab <buffer> i. \item</pre>
Type the abbreviation (including the dot) followed by CTRL-] to expand the snippet, then
134

edits

Navigation menu