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

Warren Block <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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/&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>
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.