robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

robinmerge: 9a29622b3b00ddb601

master
29.7 KiB614 linesraw
1*intro.txt*     Nvim
2
3
4                            NVIM REFERENCE MANUAL
5
6
7Nvim                                                    *ref* *reference*
8
9                                      Type |gO| to see the table of contents.
10
11==============================================================================
12Introduction                                            *intro*
13
14Vim is a text editor which includes most commands from the Unix program "Vi"
15and many new ones.
16
17An overview of this manual can be found in the file "help.txt", |help.txt|.
18It can be accessed from within Vim with the <Help> or <F1> key and with the
19|:help| command (just type ":help", without the bars or quotes).
20   The 'helpfile' option can be set to the name of the help file, in case it
21is not located in the default place.  You can jump to subjects like with tags:
22Use CTRL-] to jump to a subject under the cursor, use CTRL-T to jump back.
23
24                                                        *pronounce*
25Vim is pronounced as one word, like Jim.  So Nvim is "En-Vim", two syllables.
26
27This manual is a reference for all Nvim editor and API features.  It is not an
28introduction; instead for beginners, there is a hands-on |tutor|, |lua-guide|,
29and |user-manual|.
30
31------------------------------------------------------------------------------
32Resources                                               *resources*
33
34                                                *internet* *www* *distribution*
35Nvim home page:
36
37        https://neovim.io/
38
39                                                *book*
40There are many resources to learn Vi, Vim, and Nvim.  We recommend:
41
42- "Practical Vim" by Drew Neil. Acclaimed for its focus on quickly learning
43  common editing tasks with Vim.
44- "Modern Vim" by Drew Neil. Explores new features in Nvim and Vim 8.
45- http://vimcasts.org
46- "Vim - Vi Improved" by Steve Oualline. This was the first book dedicated to
47  Vim.  Parts of it were included in the Vim user manual. |frombook|  ISBN:
48  0735710015
49- For more information see https://www.vim.org/iccf/click5.html
50- Vim FAQ: https://vimhelp.org/vim_faq.txt.html
51
52                                                *bugs* *bug-report* *feature-request*
53Report bugs and request features here: https://github.com/neovim/neovim/issues
54Be brief, yet complete.  Always give a reproducible example and try to find
55out which settings or other things trigger the bug. If Nvim crashed, try to
56get a backtrace (see |dev-tools-backtrace|).
57
58==============================================================================
59Installing Nvim                                         *install*
60
61                                                *download* *upgrade* *ubuntu*
62To install or upgrade Nvim, you can...
63- Download a pre-built archive:
64  https://github.com/neovim/neovim/releases
65- Use your system package manager:
66  https://github.com/neovim/neovim/blob/master/INSTALL.md#install-from-package
67- Build from source:
68  https://github.com/neovim/neovim/blob/master/INSTALL.md#install-from-source
69
70------------------------------------------------------------------------------
71Un-installing Nvim                                      *uninstall*
72
73To uninstall Nvim:
74- If you downloaded a pre-built archive or built Nvim from source (e.g.
75  `make install`), just delete its files, typically located in: >
76  /usr/local/bin/nvim
77  /usr/local/share/nvim
78<
79  - To find where Nvim is installed, run these commands: >
80    :echo v:progpath
81    :echo $VIMRUNTIME
82<
83- If you installed via package manager, read your package manager's
84  documentation. Common examples:
85  - APT (Debian, Ubuntu, …): `apt-get remove neovim`
86  - Homebrew (macOS): `brew uninstall neovim`
87  - Scoop (Windows): `scoop uninstall neovim`
88
89==============================================================================
90Sponsor Vim/Nvim development                            *sponsor*
91
92Fixing bugs and adding new features takes a lot of time and effort.  To show
93your appreciation for the work and motivate developers to continue working on
94Vim please send a donation.
95
96The money you donated will be mainly used to help children in Uganda.  See
97|uganda|.  But at the same time donations increase the development team
98motivation to keep working on Vim!
99
100For the most recent information about sponsoring look on the Vim web site:
101
102        https://www.vim.org/sponsor/
103
104
105Nvim development is funded separately from Vim:
106
107        https://neovim.io/#sponsor
108
109==============================================================================
110Bram Moolenaar                  *Bram* *Moolenaar* *Bram-Moolenaar* *brammool*
111
112Nvim is a fork of the Vim ("Vi IMproved") text editor, which was originally
113developed by Bram Moolenaar.  Searching his name within the source code of
114Nvim will reveal just how much of his work still remains in Nvim.
115On August 3, 2023, he passed away at the age of 62.  If Vim or Nvim have been
116of use to you in your life, please read |Uganda| and consider honoring his
117memory however you may see fit.
118
119- Obituary Articles: https://github.com/vim/vim/discussions/12742
120- Say Farewell: https://github.com/vim/vim/discussions/12737
121
122==============================================================================
123Keycodes                                 *key-notation* *key-codes* *keycodes*
124
125These names for keys are used in the documentation.  They can also be used
126with the ":map" command.
127
128notation        meaning             equivalent  decimal value(s)        ~
129<Nul>           Zero                    CTRL-@    0 (stored as 10) *<Nul>*
130<BS>            Backspace               CTRL-H    8     *backspace*
131<Tab>           Tab                     CTRL-I    9     *tab* *Tab*
132                                                        *linefeed*
133<NL>            Linefeed                CTRL-J   10 (used for <Nul>)
134<CR>            Carriage return         CTRL-M   13     *carriage-return*
135<Return>        Same as <CR>                            *<Return>*
136<Enter>         Same as <CR>                            *<Enter>*
137<Esc>           Escape                  CTRL-[   27     *escape* *<Esc>*
138<Space>         Space                            32     *space*
139<lt>            Less-than               <        60     *<lt>*
140<Bslash>        Backslash               \        92     *backslash* *<Bslash>*
141<Bar>           Vertical bar            |       124     *<Bar>*
142<Del>           Delete                          127
143<CSI>           Command sequence intro  ALT-Esc 155     *<CSI>*
144
145<EOL>           End-of-line (can be <CR>, <NL> or <CR><NL>,
146                Depends on system and 'fileformat')     *<EOL>*
147<Ignore>        Cancel wait-for-character               *<Ignore>*
148<NOP>           Do nothing (no-op). Useful in mappings. *<Nop>*
149                <Ignore> is a key, <NOP> is "absence of a key".
150
151<Up>            Cursor-up                       *cursor-up* *cursor_up*
152<Down>          Cursor-down                     *cursor-down* *cursor_down*
153<Left>          Cursor-left                     *cursor-left* *cursor_left*
154<Right>         Cursor-right                    *cursor-right* *cursor_right*
155<S-Up>          Shift-cursor-up
156<S-Down>        Shift-cursor-down
157<S-Left>        Shift-cursor-left
158<S-Right>       Shift-cursor-right
159<C-Left>        Control-cursor-left
160<C-Right>       Control-cursor-right
161<F1> - <F12>    Function keys 1 to 12           *function_key* *function-key*
162<S-F1> - <S-F12> Shift-function keys 1 to 12    *<S-F1>*
163<Help>          Help key
164<Undo>          Undo key
165<Find>          Find key
166<Select>        Select key
167<Insert>        Insert key
168<Home>          Home                            *home*
169<End>           End                             *end*
170<PageUp>        Page-up                         *page_up* *page-up*
171<PageDown>      Page-down                       *page_down* *page-down*
172<kUp>           Keypad cursor-up                *keypad-cursor-up*
173<kDown>         Keypad cursor-down              *keypad-cursor-down*
174<kLeft>         Keypad cursor-left              *keypad-cursor-left*
175<kRight>        Keypad cursor-right             *keypad-cursor-right*
176<kHome>         Keypad home (upper left)        *keypad-home*
177<kEnd>          Keypad end (lower left)         *keypad-end*
178<kOrigin>       Keypad origin (middle)          *keypad-origin*
179<kPageUp>       Keypad page-up (upper right)    *keypad-page-up*
180<kPageDown>     Keypad page-down (lower right)  *keypad-page-down*
181<kDel>          Keypad delete                   *keypad-delete*
182<kPlus>         Keypad +                        *keypad-plus*
183<kMinus>        Keypad -                        *keypad-minus*
184<kMultiply>     Keypad *                        *keypad-multiply*
185<kDivide>       Keypad /                        *keypad-divide*
186<kPoint>        Keypad .                        *keypad-point*
187<kComma>        Keypad ,                        *keypad-comma*
188<kEqual>        Keypad =                        *keypad-equal*
189<kEnter>        Keypad Enter                    *keypad-enter*
190<k0> - <k9>     Keypad 0 to 9                   *keypad-0* *keypad-9*
191<S-…>           Shift-key                       *shift* *<S-*
192<C-…>           Control-key                     *control* *ctrl* *<C-*
193<M-…>           Alt-key or meta-key             *META* *ALT* *<M-*
194<A-…>           Same as <M-…>                   *<A-*
195<T-…>           Meta-key, when it's not alt     *<T-*
196<D-…>           Command-key or "super" key      *<D-*
197
198
199Note:
200
201- Availability of some keys (<Help>, <S-Right>, …) depends on the UI or host
202  terminal.
203- If numlock is on the |TUI| receives plain ASCII values, so mapping <k0>,
204  <k1>, ..., <k9> and <kPoint> will not work.
205- Nvim supports mapping multibyte chars with modifiers such as `<M-ä>`. Which
206  combinations actually work depends on the UI or host terminal.
207- When a key is pressed using a meta or alt modifier and no mapping exists for
208  that keypress, Nvim may behave as though <Esc> was pressed before the key.
209- It is possible to notate combined modifiers (e.g. <M-C-T> for CTRL-ALT-T),
210  but your terminal must encode the input for that to work. |tui-input|
211
212                                                                *<>*
213Examples are often given in the <> notation.  Sometimes this is just to make
214clear what you need to type, but often it can be typed literally, e.g., with
215the ":map" command.  The rules are:
2161.  Printable characters are typed directly, except backslash and "<"
2172.  Backslash is represented with "\\", double backslash, or "<Bslash>".
2183.  Literal "<" is represented with "\<" or "<lt>".  When there is no
219    confusion possible, "<" can be used directly.
2204.  "<key>" means the special key typed (see the table above).  Examples:
221    - <Esc>             Escape key
222    - <C-G>             CTRL-G
223    - <Up>              cursor up key
224    - <C-LeftMouse>     Control- left mouse click
225    - <S-F11>           Shifted function key 11
226    - <M-a>             Meta- a  ('a' with bit 8 set)
227    - <M-A>             Meta- A  ('A' with bit 8 set)
228
229The <> notation uses <lt> to escape the special meaning of key names.  Using a
230backslash also works, but only when 'cpoptions' does not include the 'B' flag.
231
232Examples for mapping CTRL-H to the six characters "<Home>": >vim
233        :imap <C-H> \<Home>
234        :imap <C-H> <lt>Home>
235The first one only works when the 'B' flag is not in 'cpoptions'.  The second
236one always works.
237To get a literal "<lt>" in a mapping: >vim
238        :map <C-L> <lt>lt>
239
240The notation can be used in a double quoted strings, using "\<" at the start,
241e.g. "\<C-Space>".  This results in a special key code.  To convert this back
242to readable text use `keytrans()`.
243
244==============================================================================
245Modes, introduction                             *vim-modes-intro* *vim-modes*
246
247Vim has seven BASIC modes:
248
249                                        *Normal* *Normal-mode* *command-mode*
250- Normal mode:          In Normal mode you can enter all the normal editor
251                        commands.  If you start the editor you are in this
252                        mode.  This is also known as command mode.
253
254- Visual mode:          This is like Normal mode, but the movement commands
255                        extend a highlighted area.  When a non-movement
256                        command is used, it is executed for the highlighted
257                        area.  See |Visual-mode|.
258                        If the 'showmode' option is on "-- VISUAL --" is shown
259                        at the bottom of the window.
260
261- Select mode:          This looks most like the MS-Windows selection mode.
262                        Typing a printable character deletes the selection
263                        and starts Insert mode.  See |Select-mode|.
264                        If the 'showmode' option is on "-- SELECT --" is shown
265                        at the bottom of the window.
266
267- Insert mode:          In Insert mode the text you type is inserted into the
268                        buffer.  See |Insert-mode|.
269                        If the 'showmode' option is on "-- INSERT --" is shown
270                        at the bottom of the window.
271
272- Cmdline mode:         In Command-line mode (also called Cmdline mode) you
273                        can enter one line of text at the bottom of the
274                        window.  This is for the Ex commands, ":", the pattern
275                        search commands, "?" and "/", and the filter command,
276                        "!".  |Cmdline-mode|
277
278- Ex mode:              Like Command-line mode, but after entering a command
279                        you remain in |Ex-mode|.
280
281                                                        *Terminal-mode*
282- Terminal mode:        In Terminal mode all input (except CTRL-\) is sent to
283                        the process running in the current |terminal| buffer.
284                        If CTRL-\ is pressed, the next key is sent unless it
285                        is CTRL-N (|CTRL-\_CTRL-N|) or CTRL-O (|t_CTRL-\_CTRL-O|).
286                        If the 'showmode' option is on "-- TERMINAL --" is shown
287                        at the bottom of the window.
288
289There are six ADDITIONAL modes.  These are variants of the BASIC modes:
290
291                                *Operator-pending* *Operator-pending-mode*
292- Operator-pending mode: This is like Normal mode, but after an operator
293                        command has started, and Vim is waiting for a {motion}
294                        to specify the text that the operator will work on.
295
296- Replace mode:         Replace mode is a special case of Insert mode.  You
297                        can do the same things as in Insert mode, but for
298                        each character you enter, one character of the
299                        existing text is deleted.  See |Replace-mode|.
300                        If the 'showmode' option is on "-- REPLACE --" is
301                        shown at the bottom of the window.
302
303- Virtual Replace mode: Virtual Replace mode is similar to Replace mode, but
304                        instead of file characters you are replacing screen
305                        real estate.  See |Virtual-Replace-mode|.
306                        If the 'showmode' option is on "-- VREPLACE --" is
307                        shown at the bottom of the window.
308
309- Insert Normal mode:   Entered when CTRL-O is typed in Insert mode (see
310                        |i_CTRL-O|).  This is like Normal mode, but after
311                        executing one command Vim returns to Insert mode.
312                        If the 'showmode' option is on "-- (insert) --" is
313                        shown at the bottom of the window.
314
315- Insert Visual mode:   Entered when starting a Visual selection from Insert
316                        mode, e.g., by using CTRL-O and then "v", "V" or
317                        CTRL-V.  When the Visual selection ends, Vim returns
318                        to Insert mode.
319                        If the 'showmode' option is on "-- (insert) VISUAL --"
320                        is shown at the bottom of the window.
321
322- Insert Select mode:   Entered when starting Select mode from Insert mode.
323                        E.g., by dragging the mouse or <S-Right>.
324                        When the Select mode ends, Vim returns to Insert mode.
325                        If the 'showmode' option is on "-- (insert) SELECT --"
326                        is shown at the bottom of the window.
327
328==============================================================================
329Switching from mode to mode                             *mode-switching*
330
331If for any reason you do not know which mode you are in, you can always get
332back to Normal mode by typing <Esc> twice.  This doesn't work for Ex mode
333though, use ":visual".
334You will know you are back in Normal mode when you see the screen flash or
335hear the bell after you type <Esc>.  However, when pressing <Esc> after using
336CTRL-O in Insert mode you get a beep but you are still in Insert mode, type
337<Esc> again.
338
339                                                        *i_esc*
340 >
341 FROM mode      TO mode
342                Normal  Visual  Select  Insert    Replace   Cmd-line  Ex >
343 Normal                 v V ^V    *4     *1        R gR     : / ? !   1q:
344 Visual          *2               ^G     c C        --        :       --
345 Select          *5     ^O ^G            *6         --        --      --
346 Insert          <Esc>    --      --              <Insert>    --      --
347 Replace         <Esc>    --      --    <Insert>              --      --
348 Command-line    *3       --      --     :start     --                --
349 Ex              :vi      --      --     --         --        --
350
351 -- not possible
352<
353
354- 1 Go from Normal mode to Insert mode by giving the command "i", "I", "a",
355    "A", "o", "O", "c", "C", "s" or S".
356- 2 Go from Visual mode to Normal mode by giving a non-movement command, which
357    causes the command to be executed, or by hitting <Esc> "v", "V" or "CTRL-V"
358    (see |v_v|), which just stops Visual mode without side effects.
359- 3 Go from Command-line mode to Normal mode by:
360    - Hitting <CR> or <NL>, which causes the entered command to be executed.
361    - Deleting the complete line (e.g., with CTRL-U) and giving a final <BS>.
362    - Hitting CTRL-C or <Esc>, which quits the command-line without executing
363      the command.
364    In the last case <Esc> may be the character defined with the 'wildchar'
365    option, in which case it will start command-line completion.  You can
366    ignore that and type <Esc> again.
367- 4 Go from Normal to Select mode by:
368    - use the mouse to select text while 'selectmode' contains "mouse"
369    - use a non-printable command to move the cursor while keeping the Shift
370      key pressed, and the 'selectmode' option contains "key"
371    - use "v", "V" or "CTRL-V" while 'selectmode' contains "cmd"
372    - use "gh", "gH" or "g CTRL-H"  |g_CTRL-H|
373- 5 Go from Select mode to Normal mode by using a non-printable command to move
374    the cursor, without keeping the Shift key pressed.
375- 6 Go from Select mode to Insert mode by typing a printable character.  The
376    selection is deleted and the character is inserted.
377
378                        *CTRL-\_CTRL-N* *i_CTRL-\_CTRL-N* *c_CTRL-\_CTRL-N*
379                                      *v_CTRL-\_CTRL-N* *t_CTRL-\_CTRL-N*
380Additionally the command CTRL-\ CTRL-N or <C-\><C-N> can be used to go to
381Normal mode from any other mode.  This can be used to make sure Vim is in
382Normal mode, without causing a beep like <Esc> would. When used after
383a command that takes an argument, such as |f| or |m|, the timeout set with
384'ttimeoutlen' applies.
385
386        *CTRL-\_CTRL-G* *i_CTRL-\_CTRL-G* *c_CTRL-\_CTRL-G* *v_CTRL-\_CTRL-G*
387CTRL-\ CTRL-G works the same as |CTRL-\_CTRL-N| for backward compatibility.
388
389                                *:exm* *:exmode* *mode-Ex* *Ex-mode* *Ex* *EX* *E501*
390:exm[ode]
391[count]q:               Switch to Ex mode.  This is like the |cmdwin| except
392                        it stays open, in Insert-mode, so can you keep
393                        entering ":" commands (REPL style). Use |:visual| to
394                        exit this mode.
395
396                        If a command moves the cursor or changes the buffer,
397                        the current line is printed.  An empty line moves to
398                        (and prints) the next line.
399
400                        Without [count], "q:" opens the regular |cmdwin|.
401
402                        Implementation: a persistent |cmdwin| where <Enter>
403                        executes the current line as a command (against the
404                        window from which Ex mode was entered). Command output
405                        is presented as comment (") lines.
406
407==============================================================================
408Window contents                                         *window-contents*
409
410In Normal mode and Insert/Replace mode the screen window will show the current
411contents of the buffer: What You See Is What You Get.  There are two
412exceptions:
413- When the 'cpoptions' option contains '$', and the change is within one line,
414  the text is not directly deleted, but a '$' is put at the last deleted
415  character.
416- When inserting text in one window, other windows on the same text are not
417  updated until the insert is finished.
418
419Lines longer than the window width will wrap, unless the 'wrap' option is off
420(see below).  The 'linebreak' option can be set to wrap at a blank character.
421
422If the window has room after the last line of the buffer, Vim will show '~' in
423the first column of the last lines in the window, like this:
424>
425        +-----------------------+
426        |some line              |
427        |last line              |
428        |~                      |
429        |~                      |
430        +-----------------------+
431<
432Thus the '~' lines indicate that the end of the buffer was reached.
433
434If the last line in a window doesn't fit, Vim will indicate this with a '@' in
435the first column of the last lines in the window, like this:
436>
437        +-----------------------+
438        |first line             |
439        |second line            |
440        |@                      |
441        |@                      |
442        +-----------------------+
443<
444Thus the '@' lines indicate that there is a line that doesn't fit in the
445window.
446
447When the "lastline" flag is present in the 'display' option, you will not see
448'@' characters at the left side of window.  If the last line doesn't fit
449completely, only the part that fits is shown, and the last three characters of
450the last line are replaced with "@@@", like this:
451>
452        +-----------------------+
453        |first line             |
454        |second line            |
455        |a very long line that d|
456        |oesn't fit in the wi@@@|
457        +-----------------------+
458<
459If there is a single line that is too long to fit in the window, this is a
460special situation.  Vim will show only part of the line, around where the
461cursor is.  There are no special characters shown, so that you can edit all
462parts of this line.
463
464The |hl-NonText| highlight group can be used to set special highlighting
465for the '@' and '~' characters.  This makes it possible to distinguish them
466from real characters in the buffer.
467
468The 'showbreak' option contains the string to put in front of wrapped lines.
469
470                                                        *wrap-off*
471If the 'wrap' option is off, long lines will not wrap.  Only the part that
472fits on the screen is shown.  If the cursor is moved to a part of the line
473that is not shown, the screen is scrolled horizontally.  The advantage of
474this method is that columns are shown as they are and lines that cannot fit
475on the screen can be edited.  The disadvantage is that you cannot see all the
476characters of a line at once.  The 'sidescroll' option can be set to the
477minimal number of columns to scroll.
478
479All normal ASCII characters are displayed directly on the screen.  The <Tab>
480is replaced with the number of spaces that it represents.  Other non-printing
481characters are replaced with "^{char}", where {char} is the non-printing
482character with 64 added.  Thus character 7 (bell) will be shown as "^G".
483Characters between 127 and 160 are replaced with "~{char}", where {char} is
484the character with 64 subtracted.  These characters occupy more than one
485position on the screen.  The cursor can only be positioned on the first one.
486
487If you set the 'number' option, all lines will be preceded with their
488number.  Tip: If you don't like wrapping lines to mix with the line numbers,
489set the 'showbreak' option to eight spaces: >
490        ":set showbreak=\ \ \ \ \ \ \ \ "
491
492If you set the 'list' option, <Tab> characters will not be shown as several
493spaces, but as "^I".  A '$' will be placed at the end of the line, so you can
494find trailing blanks.
495
496In Command-line mode only the command-line itself is shown correctly.  The
497display of the buffer contents is updated as soon as you go back to Command
498mode.
499
500The last line of the window is used for status and other messages.  The
501status messages will only be used if an option is on: >
502
503  status message                option       default    Unix default
504  current mode                  'showmode'      on          on
505  command characters            'showcmd'       on          off
506  cursor position               'ruler'         off         off
507
508The current mode is "-- INSERT --" or "-- REPLACE --", see 'showmode'.  The
509command characters are those that you typed but were not used yet.
510
511If you have a slow terminal you can switch off the status messages to speed
512up editing: >
513        :set nosc noru nosm
514
515If there is an error, an error message will be shown for at least one second
516(in reverse video).
517
518Some commands show how many lines were affected.  Above which threshold this
519happens can be controlled with the 'report' option (default 2).
520
521The name Vim and the full name of the current file name will be shown in the
522title bar.  When the window is resized, Vim will automatically redraw the
523window.  You may make the window as small as you like, but if it gets too
524small not a single line will fit in it.  Make it at least 40 characters wide
525to be able to read most messages on the last line.
526
527==============================================================================
528Definitions                                             *definitions* *jargon*
529
530- buffer: Contains lines of text, usually from a file.
531- screen: The whole area that Nvim uses to display things.
532- window: A view on a buffer.  There can be multiple windows for one buffer.
533- frame: Windows are kept in a tree of frames.  Each frame contains a column,
534  row, or window ("leaf" frame).
535
536A screen contains one or more windows, separated by status lines and with the
537command line at the bottom.
538>
539        +-------------------------------+
540 screen | window 1      | window 2      |
541        |               |               |
542        |               |               |
543        |= status line =|= status line =|
544        | window 3                      |
545        |                               |
546        |                               |
547        |==== status line ==============|
548        |command line                   |
549        +-------------------------------+
550<
551The command line is also used for messages.  It scrolls up the screen when
552there is not enough room in the command line.
553
554A difference is made between four types of lines:
555
556- buffer lines:  The lines in the buffer.  This is the same as the
557                 lines as they are read from/written to a file.  They
558                 can be thousands of characters long.
559- logical lines: The buffer lines with folding applied.  Buffer lines
560                 in a closed fold are changed to a single logical line:
561                 "+-- 99 lines folded".  They can be thousands of
562                 characters long.
563- window lines:  The lines displayed in a window: A range of logical
564                 lines with wrapping, line breaks, etc.  applied.  They
565                 can only be as long as the width of the window allows,
566                 longer lines are wrapped or truncated.
567- screen lines:  The lines of the screen that Nvim uses.  Consists of
568                 the window lines of all windows, with status lines
569                 and the command line added.  They can only be as long
570                 as the width of the screen allows.  When the command
571                 line gets longer it wraps and lines are scrolled to
572                 make room.
573
574>
575  buffer lines    logical lines   window lines    screen lines
576  -----------------------------------------------------------------------
577  1. one          1. one          1. +-- folded   1.  +-- folded
578  2. two          2. +-- folded   2. five         2.  five
579  3. three        3. five         3. six          3.  six
580  4. four         4. six          4. seven        4.  seven
581  5. five         5. seven                        5.  === status line ===
582  6. six                                          6.  aaa
583  7. seven                                        7.  bbb
584                                                  8.  ccc ccc c
585  1. aaa          1. aaa          1. aaa          9.  cc
586  2. bbb          2. bbb          2. bbb          10. ddd
587  3. ccc ccc ccc  3. ccc ccc ccc  3. ccc ccc c    11. ~
588  4. ddd          4. ddd          4. cc           12. === status line ===
589                                  5. ddd          13. (command line)
590                                  6. ~
591<
592
593API client ~
594All external UIs and remote plugins (as opposed to regular Vim plugins) are
595"clients" in general; but we call something an "API client" if its purpose is
596to abstract or wrap the RPC API for the convenience of other applications
597(just like a REST client or SDK such as boto3 for AWS: you can speak AWS REST
598using an HTTP client like curl, but boto3 wraps that in a convenient python
599interface). For example, the Nvim node-client is an API client:
600    https://github.com/neovim/node-client
601
602
603Host ~
604A plugin "host" is both a client (of the Nvim API) and a server (of an
605external platform, e.g. python). It is a remote plugin that hosts other
606plugins.
607
608
609Remote plugin ~
610Arbitrary code registered via |:UpdateRemotePlugins|, that runs in a separate
611process and communicates with Nvim via the |api|.
612
613
614 vim:tw=78:ts=8:et:sw=4:ft=help:norl: