mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06:31 +00:00
Merge pull request #24631 from clason/vim-c2bd205254c8
vim-patch:{c2bd205254c8,0401933a5be3}: typo fixes
This commit is contained in:
2
runtime/doc/builtin.txt
generated
2
runtime/doc/builtin.txt
generated
@@ -398,7 +398,7 @@ bufload({buf}) *bufload()*
|
|||||||
refers to an existing file then the file is read. Otherwise
|
refers to an existing file then the file is read. Otherwise
|
||||||
the buffer will be empty. If the buffer was already loaded
|
the buffer will be empty. If the buffer was already loaded
|
||||||
then there is no change. If the buffer is not related to a
|
then there is no change. If the buffer is not related to a
|
||||||
file the no file is read (e.g., when 'buftype' is "nofile").
|
file then no file is read (e.g., when 'buftype' is "nofile").
|
||||||
If there is an existing swap file for the file of the buffer,
|
If there is an existing swap file for the file of the buffer,
|
||||||
there will be no dialog, the buffer will be loaded anyway.
|
there will be no dialog, the buffer will be loaded anyway.
|
||||||
The {buf} argument is used like with |bufexists()|.
|
The {buf} argument is used like with |bufexists()|.
|
||||||
|
@@ -357,7 +357,7 @@ ways to change this:
|
|||||||
You must create a new filetype plugin in a directory early in
|
You must create a new filetype plugin in a directory early in
|
||||||
'runtimepath'. For Unix, for example you could use this file: >
|
'runtimepath'. For Unix, for example you could use this file: >
|
||||||
vim ~/.config/nvim/ftplugin/fortran.vim
|
vim ~/.config/nvim/ftplugin/fortran.vim
|
||||||
< You can set those settings and mappings that you would like to add. Note
|
< 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
|
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
|
settings that you do here. If this is the case, you need to use one of the
|
||||||
following two methods.
|
following two methods.
|
||||||
@@ -366,7 +366,7 @@ ways to change this:
|
|||||||
You must put the copy in a directory early in 'runtimepath'. For Unix, for
|
You must put the copy in a directory early in 'runtimepath'. For Unix, for
|
||||||
example, you could do this: >
|
example, you could do this: >
|
||||||
cp $VIMRUNTIME/ftplugin/fortran.vim ~/.config/nvim/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
|
< 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.
|
variable will be set, the global plugin will not be loaded.
|
||||||
A disadvantage of this method is that when the distributed plugin gets
|
A disadvantage of this method is that when the distributed plugin gets
|
||||||
improved, you will have to copy and modify it again.
|
improved, you will have to copy and modify it again.
|
||||||
@@ -375,7 +375,7 @@ ways to change this:
|
|||||||
You must create a new filetype plugin in a directory from the end of
|
You must create a new filetype plugin in a directory from the end of
|
||||||
'runtimepath'. For Unix, for example, you could use this file: >
|
'runtimepath'. For Unix, for example, you could use this file: >
|
||||||
vim ~/.config/nvim/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.
|
< In this file you can change just those settings that you want to change.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
3. Docs for the default filetype plugins. *ftplugin-docs*
|
3. Docs for the default filetype plugins. *ftplugin-docs*
|
||||||
|
2
runtime/lua/vim/_meta/vimfn.lua
generated
2
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -534,7 +534,7 @@ function vim.fn.buflisted(buf) end
|
|||||||
--- refers to an existing file then the file is read. Otherwise
|
--- refers to an existing file then the file is read. Otherwise
|
||||||
--- the buffer will be empty. If the buffer was already loaded
|
--- the buffer will be empty. If the buffer was already loaded
|
||||||
--- then there is no change. If the buffer is not related to a
|
--- then there is no change. If the buffer is not related to a
|
||||||
--- file the no file is read (e.g., when 'buftype' is "nofile").
|
--- file then no file is read (e.g., when 'buftype' is "nofile").
|
||||||
--- If there is an existing swap file for the file of the buffer,
|
--- If there is an existing swap file for the file of the buffer,
|
||||||
--- there will be no dialog, the buffer will be loaded anyway.
|
--- there will be no dialog, the buffer will be loaded anyway.
|
||||||
--- The {buf} argument is used like with |bufexists()|.
|
--- The {buf} argument is used like with |bufexists()|.
|
||||||
|
@@ -747,7 +747,7 @@ M.funcs = {
|
|||||||
refers to an existing file then the file is read. Otherwise
|
refers to an existing file then the file is read. Otherwise
|
||||||
the buffer will be empty. If the buffer was already loaded
|
the buffer will be empty. If the buffer was already loaded
|
||||||
then there is no change. If the buffer is not related to a
|
then there is no change. If the buffer is not related to a
|
||||||
file the no file is read (e.g., when 'buftype' is "nofile").
|
file then no file is read (e.g., when 'buftype' is "nofile").
|
||||||
If there is an existing swap file for the file of the buffer,
|
If there is an existing swap file for the file of the buffer,
|
||||||
there will be no dialog, the buffer will be loaded anyway.
|
there will be no dialog, the buffer will be loaded anyway.
|
||||||
The {buf} argument is used like with |bufexists()|.
|
The {buf} argument is used like with |bufexists()|.
|
||||||
|
Reference in New Issue
Block a user