Skip to content

Commit

Permalink
Merge 42047ac into de4cb76
Browse files Browse the repository at this point in the history
  • Loading branch information
ZyX-I committed Oct 24, 2015
2 parents de4cb76 + 42047ac commit cdd778b
Show file tree
Hide file tree
Showing 73 changed files with 1,165 additions and 693 deletions.
26 changes: 13 additions & 13 deletions runtime/doc/arabic.txt
Expand Up @@ -104,9 +104,9 @@ o Setting the Arabic fonts
font name akin to that used in Linux/Unix systems.
(e.g. -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1)

You can append the 'guifont' set command to your .vimrc file
You can append the 'guifont' set command to your vimrc file
in order to get the same above noted results. In other words,
you can include ':set guifont=your_ARABIC_FONT' to your .vimrc
you can include ':set guifont=your_ARABIC_FONT' to your vimrc
file.

+ Under the X Window environment, you can also start VIM with
Expand All @@ -118,9 +118,9 @@ o Setting the appropriate character Encoding
>
:set encoding=utf-8
<
to your .vimrc file (entering the command manually into you VIM
to your vimrc file (entering the command manually into you VIM
window is highly discouraged). In short, include ':set
encoding=utf-8' to your .vimrc file.
encoding=utf-8' to your vimrc file.

Attempts to use Arabic without UTF-8 will result the following
warning message,
Expand Down Expand Up @@ -149,7 +149,7 @@ o Enable Arabic settings [short-cut]
4. enable rightleftcmd mode (affecting the command-line)
5. enable arabicshape mode (do visual character alterations)

You may also append the command to your .vimrc file and simply
You may also append the command to your vimrc file and simply
include ':set arabic' to it.

You are also capable of disabling Arabic support via
Expand Down Expand Up @@ -184,8 +184,8 @@ o Enable Arabic settings [short-cut]
:set keymap=arabic
<
in your VIM window. You can also append the 'keymap' set command to
your .vimrc file. In other words, you can include ':set keymap=arabic'
to your .vimrc file.
your vimrc file. In other words, you can include ':set keymap=arabic'
to your vimrc file.

To turn toggle (or switch) your keymapping between Arabic and the
default mapping (English), it is advised that users use the 'CTRL-^'
Expand All @@ -206,8 +206,8 @@ o Enable Arabic settings [short-cut]
:set delcombine
<
in our VIM window. You can also append the 'delcombine' set command
to your .vimrc file. In other words, you can include ':set delcombine'
to your .vimrc file.
to your vimrc file. In other words, you can include ':set delcombine'
to your vimrc file.

+ Arabic right-to-left Mode

Expand All @@ -221,8 +221,8 @@ o Enable Arabic settings [short-cut]
- While in Left-to-right mode, enter ':set rl' in the command line
('rl' is the abbreviation for rightleft).

- Put the ':set rl' line in your '.vimrc' file to start Vim in
right-to-left mode permanently.
- Put the ':set rl' line in your vimrc file to start Vim in
right-to-left mode permanently.

+ Arabic right-to-left command-line Mode

Expand All @@ -248,8 +248,8 @@ o Enable Arabic settings [short-cut]
:set arabicshape
<
in our VIM window. You can also append the 'arabicshape' set
command to your .vimrc file. In other words, you can include
':set arabicshape' to your .vimrc file.
command to your vimrc file. In other words, you can include
':set arabicshape' to your vimrc file.


Keymap/Keyboard *arabickeymap*
Expand Down
16 changes: 8 additions & 8 deletions runtime/doc/autocmd.txt
Expand Up @@ -28,7 +28,7 @@ a file, when entering or leaving a buffer or window, and when exiting Vim.
For example, you can create an autocommand to set the 'cindent' option for
files matching *.c. You can also use autocommands to implement advanced
features, such as editing compressed files (see |gzip-example|). The usual
place to put autocommands is in your .vimrc or .exrc file.
place to put autocommands is in your vimrc file.

*E203* *E204* *E143* *E855*
WARNING: Using autocommands is very powerful, and may lead to unexpected side
Expand Down Expand Up @@ -73,8 +73,8 @@ exception is that "<sfile>" is expanded when the autocmd is defined. Example:
Here Vim expands <sfile> to the name of the file containing this line.

When your .vimrc file is sourced twice, the autocommands will appear twice.
To avoid this, put this command in your .vimrc file, before defining
When your vimrc file is sourced twice, the autocommands will appear twice.
To avoid this, put this command in your vimrc file, before defining
autocommands: >
:autocmd! " Remove ALL autocommands for the current group.
Expand Down Expand Up @@ -695,7 +695,7 @@ FuncUndefined When a user function is used but it isn't
GUIEnter After starting the GUI successfully, and after
opening the window. It is triggered before
VimEnter when using gvim. Can be used to
position the window from a .gvimrc file: >
position the window from a gvimrc file: >
:autocmd GUIEnter * winpos 100 50
< *GUIFailed*
GUIFailed After starting the GUI failed. Vim may
Expand Down Expand Up @@ -907,7 +907,7 @@ UserGettingBored When the user presses the same key 42 times.
Just kidding! :-)
*VimEnter*
VimEnter After doing all the startup stuff, including
loading .vimrc files, executing the "-c cmd"
loading vimrc files, executing the "-c cmd"
arguments, creating all windows and loading
the buffers in them.
*VimLeave*
Expand Down Expand Up @@ -994,7 +994,7 @@ expect.
Environment variables can be used in a pattern: >
:autocmd BufRead $VIMRUNTIME/doc/*.txt set expandtab
And ~ can be used for the home directory (if $HOME is defined): >
:autocmd BufWritePost ~/.vimrc so ~/.vimrc
:autocmd BufWritePost ~/.config/nvim/init.vim so <afile>
:autocmd BufRead ~archive/* set readonly
The environment variable is expanded when the autocommand is defined, not when
the autocommand is executed. This is different from the command!
Expand Down Expand Up @@ -1135,7 +1135,7 @@ Example: >
:augroup END
This prevents having the autocommands defined twice (e.g., after sourcing the
.vimrc file again).
vimrc file again).

==============================================================================
9. Executing autocommands *autocmd-execute*
Expand All @@ -1157,7 +1157,7 @@ option will not cause any commands to be executed.
It's possible to use this inside an autocommand too,
so you can base the autocommands for one extension on
another extension. Example: >
:au BufEnter *.cpp so ~/.vimrc_cpp
:au BufEnter *.cpp so ~/.config/nvim/init_cpp.vim
:au BufEnter *.cpp doau BufEnter x.c
< Be careful to avoid endless loops. See
|autocmd-nested|.
Expand Down
8 changes: 4 additions & 4 deletions runtime/doc/cmdline.txt
Expand Up @@ -109,7 +109,7 @@ CTRL-W Delete the |word| before the cursor. This depends on the
CTRL-U Remove all characters between the cursor position and
the beginning of the line. Previous versions of vim
deleted all characters on the line. If that is the
preferred behavior, add the following to your .vimrc: >
preferred behavior, add the following to your vimrc: >
:cnoremap <C-U> <C-E><C-U>
<
*c_<Insert>* *c_Insert*
Expand Down Expand Up @@ -456,7 +456,7 @@ that take a file name.
If you would like using <S-Tab> for CTRL-P in an xterm, put this command in
your .cshrc: >
xmodmap -e "keysym Tab = Tab Find"
And this in your .vimrc: >
And this in your vimrc: >
:cmap <Esc>[1~ <C-P>
==============================================================================
Expand Down Expand Up @@ -823,8 +823,8 @@ These modifiers can be given, in this order:
precede any :r or :e.
:r Root of the file name (the last extension removed). When
there is only an extension (file name that starts with '.',
e.g., ".vimrc"), it is not removed. Can be repeated to remove
several extensions (last one first).
e.g., ".nvimrc"), it is not removed. Can be repeated to
remove several extensions (last one first).
:e Extension of the file name. Only makes sense when used alone.
When there is no extension the result is empty.
When there is only an extension (file name that starts with
Expand Down
2 changes: 1 addition & 1 deletion runtime/doc/debug.txt
Expand Up @@ -52,7 +52,7 @@ Use this command to start Vim:
>
valgrind --log-file=valgrind.log --leak-check=full ./vim
Note: Vim will run much slower. If your .vimrc is big or you have several
Note: Vim will run much slower. If your vimrc is big or you have several
plugins you need to be patient for startup, or run with the "-u NONE"
argument.

Expand Down
2 changes: 1 addition & 1 deletion runtime/doc/diff.txt
Expand Up @@ -66,7 +66,7 @@ make changes after loading a file, these will be included in the displayed
diffs. You might have to do ":diffupdate" now and then, not all changes are
immediately taken into account.

In your .vimrc file you could do something special when Vim was started in
In your vimrc file you could do something special when Vim was started in
diff mode. You could use a construct like this: >
if &diff
Expand Down
16 changes: 8 additions & 8 deletions runtime/doc/eval.txt
Expand Up @@ -3441,7 +3441,7 @@ getfperm({fname}) *getfperm()*
If a user does not have a given permission the flag for this
is replaced with the string "-". Examples: >
:echo getfperm("/etc/passwd")
:echo getfperm(expand("~/.vimrc"))
:echo getfperm(expand("~/.config/nvim/init.vim"))
< This will hopefully (from a security point of view) display
the string "rw-r--r--" or even "rw-------".

Expand Down Expand Up @@ -4668,10 +4668,10 @@ msgpackdump({list}) {Nvim} *msgpackdump()*
msgpackparse({list}) {Nvim} *msgpackparse()*
Convert a |readfile()|-style list to a list of VimL objects.
Example: >
let fname = expand('~/.nvim/shada/main.shada')
let fname = expand('~/.config/nvim/shada/main.shada')
let mpack = readfile(fname, 'b')
let shada_objects = msgpackparse(mpack)
< This will read ~/.nvim/shada/main.shada file to
< This will read ~/.config/nvim/shada/main.shada file to
`shada_objects` list.

Limitations:
Expand Down Expand Up @@ -4770,8 +4770,8 @@ pathshorten({expr}) *pathshorten()*
result. The tail, the file name, is kept as-is. The other
components in the path are reduced to single letters. Leading
'~' and '.' characters are kept. Example: >
:echo pathshorten('~/.vim/autoload/myfile.vim')
< ~/.v/a/myfile.vim ~
:echo pathshorten('~/.config/nvim/autoload/file1.vim')
< ~/.v/a/file1.vim ~
It doesn't matter if the path exists or not.

pow({x}, {y}) *pow()*
Expand Down Expand Up @@ -7274,8 +7274,8 @@ like this: >
When such a function is called, and it is not defined yet, Vim will search the
"autoload" directories in 'runtimepath' for a script file called
"filename.vim". For example "~/.vim/autoload/filename.vim". That file should
then define the function like this: >
"filename.vim". For example "~/.config/nvim/autoload/filename.vim". That
file should then define the function like this: >
function filename#funcname()
echo "Done!"
Expand Down Expand Up @@ -9080,7 +9080,7 @@ A few options contain an expression. When this expression is evaluated it may
have to be done in the sandbox to avoid a security risk. But the sandbox is
restrictive, thus this only happens when the option was set from an insecure
location. Insecure in this context are:
- sourcing a .vimrc or .exrc in the current directory
- sourcing a .nvimrc or .exrc in the current directory
- while executing in the sandbox
- value coming from a modeline

Expand Down
9 changes: 4 additions & 5 deletions runtime/doc/farsi.txt
Expand Up @@ -122,8 +122,7 @@ o Setting the Farsi fonts
':set guifont=far-a01' in the Vim window.

You can have 'guifont' set to far-a01 by Vim during the Vim startup
by appending the ':set guifont=far-a01' into your .vimrc file
(in case of NT/95/98 platforms _vimrc).
by appending the ':set guifont=far-a01' into your vimrc file.

Under the X Window environment, you can also start Vim with the
'-fn far-a01' option.
Expand All @@ -139,7 +138,7 @@ o Farsi Keymapping Activation
To activate the Farsi keymapping, set either 'altkeymap' or 'fkmap'.
This is done by entering ':set akm' or ':set fk' in the Vim window.
You can have 'altkeymap' or 'fkmap' set as default by appending ':set akm'
or ':set fk' in your .vimrc file or _vimrc in case of NT/95/98 platforms.
or ':set fk' in your vimrc file.

To turn off the Farsi keymapping as a default second language keymapping,
reset the 'altkeymap' by entering ':set noakm'.
Expand All @@ -156,8 +155,8 @@ o right-to-left Farsi Mode
+ While in Left-to-right mode, enter 'set rl' in the command line ('rl' is
the abbreviation for rightleft).

+ Put the 'set rl' line in your '.vimrc' file to start Vim in
right-to-left mode permanently.
+ Put the 'set rl' line in your vimrc file to start Vim in right-to-left
mode permanently.

Encoding
--------
Expand Down
27 changes: 13 additions & 14 deletions runtime/doc/filetype.txt
Expand Up @@ -162,8 +162,7 @@ A. If you want to overrule all default file type checks.
1. Create your user runtime directory. You would normally use the first
item of the 'runtimepath' option. Then create the directory "ftdetect"
inside it. Example for Unix: >
:!mkdir ~/.vim
:!mkdir ~/.vim/ftdetect
:!mkdir -p ~/.config/nvim/ftdetect
<
2. Create a file that contains an autocommand to detect the file type.
Example: >
Expand All @@ -173,7 +172,7 @@ A. If you want to overrule all default file type checks.
check the contents of the file to recognize it.
Write this file as "mine.vim" in the "ftdetect" directory in your user
runtime directory. For example, for Unix: >
:w ~/.vim/ftdetect/mine.vim
:w ~/.config/nvim/ftdetect/mine.vim
< 3. To use the new filetype detection you must restart Vim.

Expand All @@ -196,7 +195,7 @@ B. If you want to detect your file after the default file type checks.
C. If your file type can be detected by the file name.
1. Create your user runtime directory. You would normally use the first
item of the 'runtimepath' option. Example for Unix: >
:!mkdir ~/.vim
:!mkdir -p ~/.config/nvim
<
2. Create a file that contains autocommands to detect the file type.
Example: >
Expand All @@ -210,7 +209,7 @@ C. If your file type can be detected by the file name.
augroup END
< Write this file as "filetype.vim" in your user runtime directory. For
example, for Unix: >
:w ~/.vim/filetype.vim
:w ~/.config/nvim/filetype.vim
< 3. To use the new filetype detection you must restart Vim.

Expand All @@ -224,7 +223,7 @@ D. If your filetype can only be detected by inspecting the contents of the

1. Create your user runtime directory. You would normally use the first
item of the 'runtimepath' option. Example for Unix: >
:!mkdir ~/.vim
:!mkdir -p ~/.config/nvim
<
2. Create a vim script file for doing this. Example: >
if did_filetype() " filetype already set..
Expand All @@ -238,7 +237,7 @@ D. If your filetype can only be detected by inspecting the contents of the
< See $VIMRUNTIME/scripts.vim for more examples.
Write this file as "scripts.vim" in your user runtime directory. For
example, for Unix: >
:w ~/.vim/scripts.vim
:w ~/.config/nvim/scripts.vim
<
3. The detection will work right away, no need to restart Vim.

Expand Down Expand Up @@ -268,12 +267,12 @@ all loaded. For example, if this command: >
produces this output:

runtimepath=/etc/vim,~/.vim,/usr/local/share/vim/vim60 ~
runtimepath=/etc/vim,~/.config/nvim,/usr/local/share/vim/vim60 ~

then Vim will load all plugins in these directories and below:

/etc/vim/plugin/ ~
~/.vim/plugin/ ~
~/.config/nvim/plugin/ ~
/usr/local/share/vim/vim60/plugin/ ~

Note that the last one is the value of $VIMRUNTIME which has been expanded.
Expand Down Expand Up @@ -329,7 +328,7 @@ ways to change this:
1. Add a few settings.
You must create a new filetype plugin in a directory early in
'runtimepath'. For Unix, for example you could use this file: >
vim ~/.vim/ftplugin/fortran.vim
vim ~/.config/nvim/ftplugin/fortran.vim
< You can set those settings and mappings that you would like to add. Note
that the global plugin will be loaded after this, it may overrule the
settings that you do here. If this is the case, you need to use one of the
Expand All @@ -338,7 +337,7 @@ ways to change this:
2. Make a copy of the plugin and change it.
You must put the copy in a directory early in 'runtimepath'. For Unix, for
example, you could do this: >
cp $VIMRUNTIME/ftplugin/fortran.vim ~/.vim/ftplugin/fortran.vim
cp $VIMRUNTIME/ftplugin/fortran.vim ~/.config/nvim/ftplugin/fortran.vim
< Then you can edit the copied file to your liking. Since the b:did_ftplugin
variable will be set, the global plugin will not be loaded.
A disadvantage of this method is that when the distributed plugin gets
Expand All @@ -347,7 +346,7 @@ ways to change this:
3. Overrule the settings after loading the global plugin.
You must create a new filetype plugin in a directory from the end of
'runtimepath'. For Unix, for example, you could use this file: >
vim ~/.vim/after/ftplugin/fortran.vim
vim ~/.config/nvim/after/ftplugin/fortran.vim
< In this file you can change just those settings that you want to change.

==============================================================================
Expand Down Expand Up @@ -376,7 +375,7 @@ Global mappings:
NOTE: The global mappings are accessed by sourcing the
ftplugin/changelog.vim file first, e.g. with >
runtime ftplugin/changelog.vim
< in your |.vimrc|.
< in your |init.vim|.
<Leader>o Switches to the ChangeLog buffer opened for the
current directory, or opens it in a new buffer if it
exists in the current directory. Then it does the
Expand Down Expand Up @@ -478,7 +477,7 @@ FORTRAN *ft-fortran-plugin*

Options:
'expandtab' is switched on to avoid tabs as required by the Fortran
standards unless the user has set fortran_have_tabs in .vimrc.
standards unless the user has set fortran_have_tabs in vimrc.
'textwidth' is set to 72 for fixed source format as required by the
Fortran standards and to 80 for free source format.
'formatoptions' is set to break code and comment lines and to preserve long
Expand Down
2 changes: 1 addition & 1 deletion runtime/doc/ft_ada.txt
Expand Up @@ -58,7 +58,7 @@ To disable them use ":unlet". Example:
You can just use ":" and type these into the command line to set these
temporarily before loading an Ada file. You can make these option settings
permanent by adding the "let" command(s), without a colon, to your "~/.vimrc"
permanent by adding the "let" command(s), without a colon, to your |init.vim|
file.

Even on a slow (90Mhz) PC this mode works quickly, but if you find the
Expand Down

0 comments on commit cdd778b

Please sign in to comment.