diff runtime/doc/editing.txt @ 7051:eff26a8620ce

commit https://github.com/vim/vim/commit/88774fdd23f08355297bb8cda78856859051d3c7 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 25 19:52:04 2015 +0200 Updated runtime files and Italian messages.
author Christian Brabandt <cb@256bit.org>
date Tue, 25 Aug 2015 20:00:06 +0200
parents 349e6c01f35d
children 64e30831fa42
line wrap: on
line diff
--- a/runtime/doc/editing.txt
+++ b/runtime/doc/editing.txt
@@ -1,4 +1,4 @@
-*editing.txt*   For Vim version 7.4.  Last change: 2015 Jul 28
+*editing.txt*   For Vim version 7.4.  Last change: 2015 Aug 25
 
 
 		  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -415,6 +415,7 @@ Finds files:
 On Unix and a few other systems you can also use backticks for the file name
 argument, for example: >
 	:next `find . -name ver\\*.c -print`
+	:view `ls -t *.patch  \| head -n1`
 The backslashes before the star are required to prevent the shell from
 expanding "ver*.c" prior to execution of the find program.  The backslash
 before the shell pipe symbol "|" prevents Vim from parsing it as command
@@ -432,13 +433,11 @@ The expression can contain just about an
 avoid the special meaning of '"', '|', '%' and '#'.  However, 'wildignore'
 does apply like to other wildcards.
 
-Environment variables are expanded before evaluating the expression, thus this
-does not work: >
-	:e `=$HOME . '.vimrc'`
-Because $HOME is expanding early, resulting in: >
-	:e `=/home/user . '.vimrc'`
-This does work: >
-	:e `=expand('$HOME') . '.vimrc'`
+Environment variables in the expression are expanded when evaluating the
+expression, thus this works: >
+	:e `=$HOME . '/.vimrc'`
+This does not work, $HOME is inside a string and used literally: >
+	:e `='$HOME' . '/.vimrc'`
 
 If the expression returns a string then names are to be separated with line
 breaks.  When the result is a |List| then each item is used as a name.  Line
@@ -1407,7 +1406,7 @@ reveal it to others.  The 'viminfo' file
 You could do this to edit very secret text: >
 	:set noundofile viminfo=
 	:noswapfile edit secrets.txt
-Keep in mind that without a swap file you risk loosing your work in the event
+Keep in mind that without a swap file you risk losing your work in the event
 of a crash or a power failure.
 
 WARNING: If you make a typo when entering the key and then write the file and