aboutsummaryrefslogtreecommitdiff
path: root/en_US.ISO8859-1/books/fdp-primer
diff options
context:
space:
mode:
authorWarren Block <wblock@FreeBSD.org>2014-07-02 20:09:36 +0000
committerWarren Block <wblock@FreeBSD.org>2014-07-02 20:09:36 +0000
commit7d9b32c43997dc32b54db66496d05cf7884d3a70 (patch)
treef5d38b1e3e0b34be0c315d754ad1389ecf9c1567 /en_US.ISO8859-1/books/fdp-primer
parent723a29825d3d26b0f3c70e243c7420384c404b5c (diff)
downloaddoc-7d9b32c43997dc32b54db66496d05cf7884d3a70.tar.gz
doc-7d9b32c43997dc32b54db66496d05cf7884d3a70.zip
Update the vim editor configuration.
Submitted by: mat@
Notes
Notes: svn path=/head/; revision=45199
Diffstat (limited to 'en_US.ISO8859-1/books/fdp-primer')
-rw-r--r--en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml14
1 files changed, 5 insertions, 9 deletions
diff --git a/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml b/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml
index 68d48fe3d8..2a47405b7f 100644
--- a/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml
+++ b/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml
@@ -56,14 +56,14 @@ endif " has(autocmd)
function Set_Highlights()
"match ExtraWhitespace /^\s* \s*\|\s\+$/
- highlight OverLength ctermbg=red ctermfg=white guibg=#592929
+ highlight default link OverLength ErrorMsg
match OverLength /\%71v.\+/
return 0
endfunction
function ShowSpecial()
setlocal list listchars=tab:>>,trail:*,eol:$
- hi nontext ctermfg=red
+ hi def link nontext ErrorMsg
return 0
endfunction " ShowSpecial()
@@ -80,23 +80,19 @@ function Set_SGML()
setlocal autoindent
setlocal smartindent
" Rewrap paragraphs
- :map P gqj
+ noremap P gqj
" Replace spaces with tabs
- :map T :s/ /TAB/&lt;CR&gt;
+ noremap T :s/ /\t/&lt;CR&gt;
call ShowSpecial()
call Set_Highlights()
return 0
endfunction " Set_SGML()</programlisting>
-
- <para>Process the file to create embedded tabs:</para>
-
- <screen>&prompt.user; <userinput>perl -i'' -pe 's/TAB/\t/g' ~/.vimrc</userinput></screen>
</sect2>
<sect2 xml:id="editor-config-vim-use">
<title>Use</title>
- <para>Press <keycap>P</keycap> to reformat paragraphs. Press
+ <para>Press <keycap>P</keycap> to reformat paragraphs or text that has been selected in Visual mode. Press
<keycap>T</keycap> to replace groups of eight spaces with a
tab.</para>
</sect2>