diff options
-rw-r--r-- | docs-vim-en.xml | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/docs-vim-en.xml b/docs-vim-en.xml index 8671080..e5bb9b4 100644 --- a/docs-vim-en.xml +++ b/docs-vim-en.xml @@ -1,4 +1,4 @@ -<!-- $Id: docs-vim-en.xml,v 1.1 2004/03/18 20:25:02 tfox Exp $ --> +<!-- $Id: docs-vim-en.xml,v 1.2 2005/12/23 22:57:30 pfrields Exp $ --> <chapter id="ch-vim"> <title>VIM and DocBook</title> @@ -30,8 +30,7 @@ some VIM features useful for editing SGML or XML content such as DocBook: <screen> -<computeroutput> -" Turn off vi compatibility settings like limited undo +<computeroutput>" Turn off vi compatibility settings like limited undo set nocompatible " Syntax highlighting based on file extension syntax on @@ -40,8 +39,7 @@ set textwidth=80 " Automatically indent set autoindent " Match SGML tags with % -source $VIMRUNTIME/macros/matchit.vim -</computeroutput> +source $VIMRUNTIME/macros/matchit.vim</computeroutput> </screen> </para> <note> @@ -71,10 +69,8 @@ source $VIMRUNTIME/macros/matchit.vim can save it in a separate file and load it with a <userinput>source</userinput> command in your <filename>.vimrc</filename>. - <screen> - <programlisting> - <![CDATA[ -let mapleader = "," +<screen> +<![CDATA[let mapleader = "," " skip ahead to after next tag without leaving insert mode imap <leader>e <esc>/><cr>:nohlsearch<cr>a @@ -99,10 +95,8 @@ imap<leader>sy <systemitem class="systemname"></systemitem><esc>F>a imap<leader>cm <command></command><esc>F>a " entities imap <leader>> > -imap <leader>< < -]]> - </programlisting> - </screen> +imap <leader>< <]]> +</screen> </para> <para> Unfortunately, there is not currently a complete macro set for all |