summaryrefslogtreecommitdiff
path: root/runtime/doc/usr_30.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-02-23 23:39:13 +0100
committerBram Moolenaar <Bram@vim.org>2014-02-23 23:39:13 +0100
commit26df092843de91ea0c5c5c130d0d0695d2d81c07 (patch)
treea049c605f9dee06d777ad030b291ddf782cfcdb9 /runtime/doc/usr_30.txt
parent581966e8323c2bab6f9e54729708dc46de8f9fc5 (diff)
downloadvim-git-26df092843de91ea0c5c5c130d0d0695d2d81c07.tar.gz
updated for version 7.4.191v7.4.191
Problem: Escaping a file name for shell commands can't be done without a function. Solution: Add the :S file name modifier.
Diffstat (limited to 'runtime/doc/usr_30.txt')
-rw-r--r--runtime/doc/usr_30.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/usr_30.txt b/runtime/doc/usr_30.txt
index 52f437572..b2be51298 100644
--- a/runtime/doc/usr_30.txt
+++ b/runtime/doc/usr_30.txt
@@ -128,7 +128,7 @@ be escaped with a backslash. Example: >
You can include special Vim keywords in the command specification. The %
character expands to the name of the current file. So if you execute the
command: >
- :set makeprg=make\ %
+ :set makeprg=make\ %:S
When you are editing main.c, then ":make" executes the following command: >
@@ -137,7 +137,7 @@ When you are editing main.c, then ":make" executes the following command: >
This is not too useful, so you will refine the command a little and use the :r
(root) modifier: >
- :set makeprg=make\ %:r.o
+ :set makeprg=make\ %:r:S.o
Now the command executed is as follows: >