annotate runtime/doc/os_unix.txt @ 28497:7c4a9e20c178 v8.2.4773

patch 8.2.4773: build failure without the +eval feature Commit: https://github.com/vim/vim/commit/a9549c9e8f368a7fa1dcbe14ec23e82c6a0b8715 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 17 14:18:11 2022 +0100 patch 8.2.4773: build failure without the +eval feature Problem: Build failure without the +eval feature. Solution: Use other error message. Avoid warnings.
author Bram Moolenaar <Bram@vim.org>
date Sun, 17 Apr 2022 15:30:06 +0200
parents 3a1ed539ae2a
children f8116058ca76
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18879
af69c9335223 Vim 8.2 release
Bram Moolenaar <Bram@vim.org>
parents: 14421
diff changeset
1 *os_unix.txt* For Vim version 8.2. Last change: 2005 Mar 29
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 VIM REFERENCE MANUAL by Bram Moolenaar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 *unix* *Unix*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 This file contains the particularities for the Unix version of Vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 For compiling Vim on Unix see "INSTALL" and "Makefile" in the src directory.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 The default help file name is "/usr/local/lib/vim/help.txt"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 The files "$HOME/.vimrc" and "$HOME/.exrc" are used instead of "s:.vimrc" and
237
73354c21f1e4 updated for version 7.0066
vimboss
parents: 231
diff changeset
14 "s:.exrc". Additionally "/usr/local/etc/vimrc" is used first.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 If "/usr/local/share" exists it is used instead of "/usr/local/lib".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 Temporary files (for filtering) are put in "/tmp". If you want to place them
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 somewhere else, set the environment variable $TMPDIR to the directory you
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 prefer.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 With wildcard expansion you can use '~' (home directory) and '$'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 (environment variable).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 *fork* *spoon*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 For executing external commands fork()/exec() is used when possible, otherwise
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 system() is used, which is a bit slower. The output of ":version" includes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 |+fork| when fork()/exec() is used, |+system()| when system() is used. This
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 can be changed at compile time.
237
73354c21f1e4 updated for version 7.0066
vimboss
parents: 231
diff changeset
29 (For forking of the GUI version see |gui-fork|.)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 Because terminal updating under Unix is often slow (e.g. serial line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 terminal, shell window in suntools), the 'showcmd' and 'ruler' options
21499
3a1ed539ae2a Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18879
diff changeset
33 are off by default. If you have a fast terminal, try setting them on. You
3a1ed539ae2a Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18879
diff changeset
34 might also want to set 'ttyfast'.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 When using Vim in an xterm the mouse clicks can be used by Vim by setting
237
73354c21f1e4 updated for version 7.0066
vimboss
parents: 231
diff changeset
37 'mouse' to "a". If there is access to an X-server gui style copy/paste will
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 be used and visual feedback will be provided while dragging with the mouse.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 If you then still want the xterm copy/paste with the mouse, press the shift
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 key when using the mouse. See |mouse-using|. Visual feedback while dragging
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 can also be achieved via the 'ttymouse' option if your xterm is new enough.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 *terminal-colors*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 To use colors in Vim you can use the following example (if your terminal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 supports colors, but "T_Co" is empty or zero): >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 :set t_me=^[[0;1;36m " normal mode (undoes t_mr and t_md)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 :set t_mr=^[[0;1;33;44m " reverse (invert) mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 :set t_md=^[[1;33;41m " bold mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 :set t_se=^[[1;36;40m " standout end
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 :set t_so=^[[1;32;45m " standout mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 :set t_ue=^[[0;1;36m " underline end
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 :set t_us=^[[1;32m " underline mode start
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 [the ^[ is an <Esc>, type CTRL-V <Esc> to enter it]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 For real color terminals the ":highlight" command can be used.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
231
8eec9649b7a2 updated for version 7.0064
vimboss
parents: 7
diff changeset
57 The file "tools/vim132" is a shell script that can be used to put Vim in 132
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 column mode on a vt100 and lookalikes.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
14421
2f7e67dd088c Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13963
diff changeset
60 vim:tw=78:ts=8:noet:ft=help:norl: