Mercurial > vim
annotate runtime/vimrc_example.vim @ 15621:bfbdef46aa7d v8.1.0818
patch 8.1.0818: MS-Windows: cannot send large data with ch_sendraw()
commit https://github.com/vim/vim/commit/240583869ae477202494dd01ef1e8e2bac650f10
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 24 23:11:49 2019 +0100
patch 8.1.0818: MS-Windows: cannot send large data with ch_sendraw()
Problem: MS-Windows: cannot send large data with ch_sendraw().
Solution: Split write into several WriteFile() calls. (Yasuhiro Matsumoto,
closes #3823)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Jan 2019 23:15:05 +0100 |
parents | 34c8ec888122 |
children | fe57e4f0eac1 |
rev | line source |
---|---|
7 | 1 " An example for a vimrc file. |
2 " | |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | |
12559 | 4 " Last change: 2017 Sep 20 |
7 | 5 " |
6 " To use it, copy it to | |
7 " for Unix and OS/2: ~/.vimrc | |
8 " for Amiga: s:.vimrc | |
9 " for MS-DOS and Win32: $VIM\_vimrc | |
10 " for OpenVMS: sys$login:.vimrc | |
11 | |
12 " When started as "evim", evim.vim will already have done these settings. | |
13 if v:progname =~? "evim" | |
14 finish | |
15 endif | |
16 | |
9669
284b4eb307fc
commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents:
9344
diff
changeset
|
17 " 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
|
18 source $VIMRUNTIME/defaults.vim |
7 | 19 |
20 if has("vms") | |
21 set nobackup " do not keep a backup file, use versions instead | |
22 else | |
5637 | 23 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
|
24 if has('persistent_undo') |
284b4eb307fc
commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents:
9344
diff
changeset
|
25 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
|
26 endif |
1668 | 27 endif |
7 | 28 |
29 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
|
30 " Switch on highlighting the last used search pattern. |
7 | 31 set hlsearch |
32 endif | |
33 | |
34 " Only do this part when compiled with support for autocommands. | |
35 if has("autocmd") | |
36 | |
37 " Put these in an autocmd group, so that we can delete them easily. | |
38 augroup vimrcEx | |
39 au! | |
40 | |
41 " For all text files set 'textwidth' to 78 characters. | |
42 autocmd FileType text setlocal textwidth=78 | |
43 | |
44 augroup END | |
45 | |
46 else | |
47 | |
48 set autoindent " always set autoindenting on | |
49 | |
50 endif " has("autocmd") | |
1125 | 51 |
8720
9380c37723f8
commit https://github.com/vim/vim/commit/aedfcbe1e6c7df6edcd6756d7601bfdec7dd2087
Christian Brabandt <cb@256bit.org>
parents:
6741
diff
changeset
|
52 " Add optional packages. |
9380c37723f8
commit https://github.com/vim/vim/commit/aedfcbe1e6c7df6edcd6756d7601bfdec7dd2087
Christian Brabandt <cb@256bit.org>
parents:
6741
diff
changeset
|
53 " |
9380c37723f8
commit https://github.com/vim/vim/commit/aedfcbe1e6c7df6edcd6756d7601bfdec7dd2087
Christian Brabandt <cb@256bit.org>
parents:
6741
diff
changeset
|
54 " 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
|
55 " compatible. |
12559 | 56 " The ! means the package won't be loaded right away but when plugins are |
57 " loaded during initialization. | |
9344
33c1b85d408c
commit https://github.com/vim/vim/commit/802a0d902fca423acb15f835d7b09183883d79a0
Christian Brabandt <cb@256bit.org>
parents:
8853
diff
changeset
|
58 if has('syntax') && has('eval') |
12559 | 59 packadd! matchit |
9344
33c1b85d408c
commit https://github.com/vim/vim/commit/802a0d902fca423acb15f835d7b09183883d79a0
Christian Brabandt <cb@256bit.org>
parents:
8853
diff
changeset
|
60 endif |