svn commit: r45199 - head/en_US.ISO8859-1/books/fdp-primer/editor-config

Warren Block wblock at FreeBSD.org
Wed Jul 2 20:09:37 UTC 2014


Author: wblock
Date: Wed Jul  2 20:09:36 2014
New Revision: 45199
URL: http://svnweb.freebsd.org/changeset/doc/45199

Log:
  Update the vim editor configuration.
  
  Submitted by:	mat@

Modified:
  head/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml

Modified: head/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml	Wed Jul  2 16:06:50 2014	(r45198)
+++ head/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml	Wed Jul  2 20:09:36 2014	(r45199)
@@ -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/<CR>
+    noremap T :s/        /\t/<CR>
     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>


More information about the svn-doc-all mailing list