doc: remove mentions of vimrc_example

closes #8426
This commit is contained in:
Justin M. Keyes 2018-05-22 22:45:57 +02:00
parent 1642917f9b
commit f1bc152fa0
6 changed files with 13 additions and 22 deletions

View File

@ -165,7 +165,7 @@ loaded. Since Vim doesn't allow having two buffers for the same file, you
need another buffer. This command is useful: > need another buffer. This command is useful: >
command DiffOrig vert new | set buftype=nofile | read ++edit # | 0d_ command DiffOrig vert new | set buftype=nofile | read ++edit # | 0d_
\ | diffthis | wincmd p | diffthis \ | diffthis | wincmd p | diffthis
(this is in |vimrc_example.vim|). Use ":DiffOrig" to see the differences Use ":DiffOrig" to see the differences
between the current buffer and the file it was loaded from. between the current buffer and the file it was loaded from.
A buffer that is unloaded cannot be used for the diff. But it does work for A buffer that is unloaded cannot be used for the diff. But it does work for

View File

@ -655,9 +655,6 @@ Q Switch to "Ex" mode. This is a bit like typing ":"
Vim will enter this mode by default if it's invoked as Vim will enter this mode by default if it's invoked as
"ex" on the command-line. "ex" on the command-line.
Use the ":vi" command |:visual| to exit "Ex" mode. Use the ":vi" command |:visual| to exit "Ex" mode.
Note: In older versions of Vim "Q" formatted text,
that is now done with |gq|. But if you use the
|vimrc_example.vim| script "Q" works like "gq".
*gQ* *gQ*
gQ Switch to "Ex" mode like with "Q", but really behave gQ Switch to "Ex" mode like with "Q", but really behave

View File

@ -761,9 +761,8 @@ g'{mark} g`{mark}
Jump to the {mark}, but don't change the jumplist when Jump to the {mark}, but don't change the jumplist when
jumping within the current buffer. Example: > jumping within the current buffer. Example: >
g`" g`"
< jumps to the last known position in a file. See < jumps to the last known position in a file.
$VIMRUNTIME/vimrc_example.vim. See also |:keepjumps|.
Also see |:keepjumps|.
*:marks* *:marks*
:marks List all the current marks (not a motion command). :marks List all the current marks (not a motion command).

View File

@ -57,12 +57,11 @@ make them visible with: >
============================================================================== ==============================================================================
*01.2* Vim installed *setup-vimrc_example* *01.2* Vim installed *setup-vimrc_example*
It's not required for this tutorial, but we provide an example vimrc you may To create an empty vimrc: >
use:
:!cp -i $VIMRUNTIME/vimrc_example.vim ~/.config/nvim/init.vim :call mkdir(stdpath('config'),'p')
:exe 'edit' stdpath('config').'/init.vim'
If the file already exists you probably want to keep it. :write
For more info see |vimrc|. For more info see |vimrc|.

View File

@ -58,10 +58,9 @@ to write a Vim script file: |usr_41.txt|.
============================================================================== ==============================================================================
*05.2* The example vimrc file explained *vimrc_example.vim* *05.2* The example vimrc file explained *vimrc_example.vim*
In the first chapter was explained how the example vimrc file can be used. In the first chapter was explained how to create a vimrc file. >
The file can be found here:
$VIMRUNTIME/vimrc_example.vim ~ :exe 'edit' stdpath('config').'/init.vim'
In this section we will explain the various commands used in this file. This In this section we will explain the various commands used in this file. This
will give you hints about how to set up your own preferences. Not everything will give you hints about how to set up your own preferences. Not everything

View File

@ -906,16 +906,13 @@ You can find help on just about any subject, by giving an argument to the
Vim has many more features than Vi, but most of them are disabled by Vim has many more features than Vi, but most of them are disabled by
default. To start using more features you have to create a "vimrc" file. default. To start using more features you have to create a "vimrc" file.
1. Start editing the "vimrc" file. This depends on your system: 1. Start editing the "vimrc" file.
`:e ~/.config/nvim/init.vim`{vim} for Unix-like systems `:call mkdir(stdpath('config'),'p')`{vim}
`:exe 'edit' stdpath('config').'/init.vim'`{vim}
2. Now read the example "vimrc" file contents: 2. Write the file with:
`:r $VIMRUNTIME/vimrc_example.vim`{vim}
3. Write the file with:
`:w`{vim} `:w`{vim}
The next time you start Vim it will use syntax highlighting.
You can add all your preferred settings to this "vimrc" file. You can add all your preferred settings to this "vimrc" file.
For more information type `:help vimrc-intro`{vim}. For more information type `:help vimrc-intro`{vim}.