annotate runtime/vimrc_example.vim @ 35075:43739470fe40 default tip

runtime(asm): missing setlocal in indent plugin (#14658) Commit: https://github.com/vim/vim/commit/2e9b9e9a9ebf3fd40437260ecd6b1e23b02c636b Author: Marc Sven Schulte <167623652+msschulte@users.noreply.github.com> Date: Sun Apr 28 21:43:03 2024 +0200 runtime(asm): missing setlocal in indent plugin (https://github.com/vim/vim/issues/14658) Signed-off-by: Marc Sven Schulte <167623652+msschulte@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 28 Apr 2024 21:45:03 +0200
parents 4027cefc2aab
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " An example for a vimrc file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 "
32770
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 19526
diff changeset
3 " Maintainer: The Vim Project <https://github.com/vim/vim>
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 19526
diff changeset
4 " Last Change: 2023 Aug 10
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 19526
diff changeset
5 " Former Maintainer: Bram Moolenaar <Bram@vim.org>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " To use it, copy it to
18912
ccd16426a1f9 patch 8.2.0017: OS/2 and MS-DOS are still mentioned
Bram Moolenaar <Bram@vim.org>
parents: 15729
diff changeset
8 " for Unix: ~/.vimrc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " for Amiga: s:.vimrc
18912
ccd16426a1f9 patch 8.2.0017: OS/2 and MS-DOS are still mentioned
Bram Moolenaar <Bram@vim.org>
parents: 15729
diff changeset
10 " for MS-Windows: $VIM\_vimrc
19526
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents: 18912
diff changeset
11 " for Haiku: ~/config/settings/vim/vimrc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " for OpenVMS: sys$login:.vimrc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
15729
fe57e4f0eac1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12559
diff changeset
14 " When started as "evim", evim.vim will already have done these settings, bail
fe57e4f0eac1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12559
diff changeset
15 " out.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 if v:progname =~? "evim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
9669
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 9344
diff changeset
20 " Get the defaults that most users want.
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 9344
diff changeset
21 source $VIMRUNTIME/defaults.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 if has("vms")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 set nobackup " do not keep a backup file, use versions instead
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 else
5637
c82339d8fdae updated for version 7.4.165
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
26 set backup " keep a backup file (restore to previous version)
9669
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 9344
diff changeset
27 if has('persistent_undo')
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 9344
diff changeset
28 set undofile " keep an undo file (undo changes after closing)
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 9344
diff changeset
29 endif
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1648
diff changeset
30 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 if &t_Co > 2 || has("gui_running")
9669
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 9344
diff changeset
33 " Switch on highlighting the last used search pattern.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 set hlsearch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
15729
fe57e4f0eac1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12559
diff changeset
37 " Put these in an autocmd group, so that we can delete them easily.
fe57e4f0eac1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12559
diff changeset
38 augroup vimrcEx
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 au!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " For all text files set 'textwidth' to 78 characters.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 autocmd FileType text setlocal textwidth=78
15729
fe57e4f0eac1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12559
diff changeset
43 augroup END
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
44
8720
9380c37723f8 commit https://github.com/vim/vim/commit/aedfcbe1e6c7df6edcd6756d7601bfdec7dd2087
Christian Brabandt <cb@256bit.org>
parents: 6741
diff changeset
45 " Add optional packages.
9380c37723f8 commit https://github.com/vim/vim/commit/aedfcbe1e6c7df6edcd6756d7601bfdec7dd2087
Christian Brabandt <cb@256bit.org>
parents: 6741
diff changeset
46 "
9380c37723f8 commit https://github.com/vim/vim/commit/aedfcbe1e6c7df6edcd6756d7601bfdec7dd2087
Christian Brabandt <cb@256bit.org>
parents: 6741
diff changeset
47 " The matchit plugin makes the % command work better, but it is not backwards
9380c37723f8 commit https://github.com/vim/vim/commit/aedfcbe1e6c7df6edcd6756d7601bfdec7dd2087
Christian Brabandt <cb@256bit.org>
parents: 6741
diff changeset
48 " compatible.
12559
34c8ec888122 Update runtime files
Christian Brabandt <cb@256bit.org>
parents: 9669
diff changeset
49 " The ! means the package won't be loaded right away but when plugins are
34c8ec888122 Update runtime files
Christian Brabandt <cb@256bit.org>
parents: 9669
diff changeset
50 " loaded during initialization.
9344
33c1b85d408c commit https://github.com/vim/vim/commit/802a0d902fca423acb15f835d7b09183883d79a0
Christian Brabandt <cb@256bit.org>
parents: 8853
diff changeset
51 if has('syntax') && has('eval')
12559
34c8ec888122 Update runtime files
Christian Brabandt <cb@256bit.org>
parents: 9669
diff changeset
52 packadd! matchit
9344
33c1b85d408c commit https://github.com/vim/vim/commit/802a0d902fca423acb15f835d7b09183883d79a0
Christian Brabandt <cb@256bit.org>
parents: 8853
diff changeset
53 endif