Advanced Editing Techniques

mappingwhenresultdescription
,c
rename a tag
,C
rename a tag and ask for its attributes
,d
<pa|ra>outer <emphasis>inner</emphasis> outer<para>outer <emphasis>inner</emphasis> outerremoves the surrounding tag
,D
<para>outer
<em|phasis>inner</emphasis>
outer<para>
<para>
outer outer
<para>
removes the surrounding tag and its content
,e
<para>some text|
<para>some text<para>
provides a closing tag for the preceding unclosed opening tag
,s
|some text</para>
<para>some text<para>
provides an opening tag for the following unopened closing tag
,f
<pa|ra>
 line1
 line2
 line3
 </para>
+-- 5 lines: <para>---------- 
folds the tag under the cursor
,F
folds all tags named as the one under the cursor; if there is no tag under the cursor, you will be asked for the tag name
,j
<para>para1</p|ara>
<para>para2</para>
<para>para1|
para2</para>
joins two adjacent elements of the same type, joining and removing the tag under the cursor
,l
text
<listitem>
 <para>text</para>
<listitem>
surrounds a visually defined (with v) block with <listitem><para>
,o
<pa|ra>text</para>
<para>
<entry>text</entry>
</para>
surround the inner text of the current tag with a specified one which you are asked for, <entry/> in the example
,O
<pa|ra>text</para>
<entry>
 <para>text</para>
</entry>
surrounds the tag under the cursor with a specified one which you are asked for, <entry/> in the example
,>
indents the current element and all its content
,<
unindents the current element and all its content
,<
some text|<!-- some text -->comments out visually selected text block
,v
some text
<para>
 some text
</para>
surrounds the visually selected text block with a tag which you are asked for, <para/> in the example
,5
or
,%
extends the visual selection up to the matching tag