commit d591275db736ddac68c07b49432bc23ad37f2d6a
parent 9377db2545090fbea740a5befcf931f6db11c2e1
Author: Phạm Bình An <111893501+brianhuster@users.noreply.github.com>
Date: Wed, 23 Jul 2025 05:27:36 +0700
docs: update usr_02.txt #35031
Problem:
- There is reference to gVim in the usr_02.txt file, even though Nvim
has no built-in GUI.
- `:h help-summary` has a section about optional features (e.g.
`+conceal`) even though such thing does not exist in Nvim (`:h
+conceal` will give E149 error).
Solution:
- Remove reference to gVim.
- Replace the section about optional features with a section about Lua.
Diffstat:
1 file changed, 10 insertions(+), 21 deletions(-)
diff --git a/runtime/doc/usr_02.txt b/runtime/doc/usr_02.txt
@@ -25,9 +25,9 @@ Table of contents: |usr_toc.txt|
==============================================================================
*02.1* Running Vim for the First Time
-To start Vim, enter this command: >
+To start Nvim, enter this command: >
- gvim file.txt
+ nvim file.txt
On Unix you can type this at any command prompt. If you are running Microsoft
Windows, open a Command Prompt and enter the command. In either case, Vim
@@ -50,20 +50,6 @@ screen, a message line indicates the file is named file.txt and shows that you
are creating a new file. The message information is temporary and other
information overwrites it.
-
-THE VIM COMMAND
-
-The gvim command causes the editor to create a new window for editing. If you
-use this command: >
-
- vim file.txt
-
-the editing occurs inside your command window. In other words, if you are
-running inside an xterm, the editor uses your xterm window. If you are using
-the command prompt under Microsoft Windows, the editing occurs inside this
-window. The text in the window will look the same for both versions, but with
-gvim you have extra features, like a menu bar. More about that later.
-
==============================================================================
*02.2* Inserting text
@@ -580,7 +566,7 @@ Summary: *help-summary* >
:help quote:
13) Vim Script is available at >
- :help eval.txt
+ :help vimeval.txt
< Certain aspects of the language are available at :h expr-X where "X" is a
single letter. E.g. >
:help expr-!
@@ -660,10 +646,13 @@ Summary: *help-summary* >
command switch of Vim use: >
:help -f
-24) Optional features always start with "+". To find out about the
- conceal feature use: >
- :help +conceal
-
+24) Lua language and Nvim's Lua standard library are available at >vim
+ :help lua.txt
+< Guide to using Lua in Nvim is available at >vim
+ :help lua-guide.txt
+< Lua 5.1 reference manual is available at >vim
+ :help luaref.txt
+<
25) Documentation for included filetype specific functionality is usually
available in the form ft-<filetype>-<functionality>. So >
:help ft-c-syntax