diff options
Diffstat (limited to 'runtime/doc/repeat.txt')
-rw-r--r-- | runtime/doc/repeat.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt index 2263b20d1a..521d690d93 100644 --- a/runtime/doc/repeat.txt +++ b/runtime/doc/repeat.txt @@ -96,9 +96,9 @@ where the cursor was before the global command). The global command sets both the last used search pattern and the last used substitute pattern (this is vi compatible). This makes it easy to globally -replace a string: +replace a string: > :g/pat/s//PAT/g -This replaces all occurrences of "pat" with "PAT". The same can be done with: +This replaces all occurrences of "pat" with "PAT". The same can be done with: > :%s/pat/PAT/g Which is two characters shorter! @@ -447,7 +447,7 @@ Example: the lines > \:%, \n:>, \fb:- -are interpreted as if they were given in one line: +are interpreted as if they were given in one line: > :set comments=sr:/*,mb:*,el:*/,://,b:#,:%,n:>,fb:- All leading whitespace characters in the line before a backslash are ignored. @@ -540,7 +540,7 @@ the runtime path. Example: > Using a package and loading automatically ~ Let's assume your Nvim files are in "~/.local/share/nvim/site" and you want to -add a package from a zip archive "/tmp/foopack.zip": +add a package from a zip archive "/tmp/foopack.zip": > % mkdir -p ~/.local/share/nvim/site/pack/foo % cd ~/.local/share/nvim/site/pack/foo % unzip /tmp/foopack.zip @@ -589,7 +589,7 @@ If the package has an "after" directory, that directory is added to the end of Using a single plugin and loading it automatically ~ If you don't have a package but a single plugin, you need to create the extra -directory level: +directory level: > % mkdir -p ~/.local/share/nvim/site/pack/foo/start/foobar % cd ~/.local/share/nvim/site/pack/foo/start/foobar % unzip /tmp/someplugin.zip |