summaryrefslogtreecommitdiff
path: root/runtime/doc/editing.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-08-25 19:52:04 +0200
committerBram Moolenaar <Bram@vim.org>2015-08-25 19:52:04 +0200
commit88774fdd23f08355297bb8cda78856859051d3c7 (patch)
treeb4cad453fff29106d50879aa877aa093db2530e8 /runtime/doc/editing.txt
parent80ce282107849ef1a0e9b8a3be26c59c211b0957 (diff)
downloadvim-git-88774fdd23f08355297bb8cda78856859051d3c7.tar.gz
Updated runtime files and Italian messages.
Diffstat (limited to 'runtime/doc/editing.txt')
-rw-r--r--runtime/doc/editing.txt17
1 files changed, 8 insertions, 9 deletions
diff --git a/runtime/doc/editing.txt b/runtime/doc/editing.txt
index 1be6a6d76..49a96f6a6 100644
--- 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 anything, thus this can also be used to
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 is not encrypted.
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