Mercurial > vim
annotate runtime/gvimrc_example.vim @ 34336:d2ad8733db75 v9.1.0101
patch 9.1.0101: upper-case of German sharp s should be U+1E9E
Commit: https://github.com/vim/vim/commit/bd1232a1faf56b614a1e74c4ce51bc6e0650ae00
Author: glepnir <glephunter@gmail.com>
Date: Mon Feb 12 22:14:53 2024 +0100
patch 9.1.0101: upper-case of German sharp s should be U+1E9E
Problem: upper-case of ? should be U+1E9E (CAPITAL LETTER SHARP S)
(fenuks)
Solution: Make gU, ~ and g~ convert the U+00DF LATIN SMALL LETTER SHARP S (?)
to U+1E9E LATIN CAPITAL LETTER SHARP S (?), update tests
(glepnir)
This is part of Unicode 5.1.0 from April 2008, so should be fairly safe
to use now and since 2017 is part of the German standard orthography,
according to Wikipedia:
https://en.wikipedia.org/wiki/Capital_%E1%BA%9E#cite_note-auto-12
There is however one exception: UnicodeData.txt for U+00DF
LATIN SMALL LETTER SHARP S does NOT define U+1E9E LATIN CAPITAL LETTER
SHARP S as its upper case version. Therefore, toupper() won't be able
to convert from lower sharp s to upper case sharp s (the other way
around however works, since U+00DF is considered the lower case
character of U+1E9E and therefore tolower() works correctly for the
upper case version).
fixes: #5573
closes: #14018
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 12 Feb 2024 22:45:02 +0100 |
parents | 4027cefc2aab |
children |
rev | line source |
---|---|
7 | 1 " An example for a gvimrc file. |
8853
48b4c1c284fb
commit https://github.com/vim/vim/commit/54f1b7abf8c48b1dd997202258d1d0673ed4bd29
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
2 " The commands in this are executed when the GUI is started, after the vimrc |
48b4c1c284fb
commit https://github.com/vim/vim/commit/54f1b7abf8c48b1dd997202258d1d0673ed4bd29
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
3 " has been executed. |
7 | 4 " |
32770
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
19526
diff
changeset
|
5 " 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
|
6 " 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
|
7 " Former Maintainer: Bram Moolenaar <Bram@vim.org> |
7 | 8 " |
9 " To use it, copy it to | |
19526
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
18912
diff
changeset
|
10 " for Unix: ~/.gvimrc |
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
18912
diff
changeset
|
11 " for Amiga: s:.gvimrc |
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
18912
diff
changeset
|
12 " for MS-Windows: $VIM\_gvimrc |
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
18912
diff
changeset
|
13 " for Haiku: ~/config/settings/vim/gvimrc |
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
18912
diff
changeset
|
14 " for OpenVMS: sys$login:.gvimrc |
7 | 15 |
16 " Make external commands work through a pipe instead of a pseudo-tty | |
17 "set noguipty | |
18 | |
19 " set the X11 font to use | |
20 " set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1 | |
21 | |
22 set ch=2 " Make command line two lines high | |
23 | |
24 set mousehide " Hide the mouse when typing text | |
25 | |
26 " Make shift-insert work like in Xterm | |
27 map <S-Insert> <MiddleMouse> | |
28 map! <S-Insert> <MiddleMouse> | |
29 | |
30 " Only do this for Vim version 5.0 and later. | |
31 if version >= 500 | |
32 | |
33 " Switch on syntax highlighting if it wasn't on yet. | |
34 if !exists("syntax_on") | |
35 syntax on | |
36 endif | |
37 | |
38 " For Win32 version, have "K" lookup the keyword in a help file | |
39 "if has("win32") | |
40 " let winhelpfile='windows.hlp' | |
41 " map K :execute "!start winhlp32 -k <cword> " . winhelpfile <CR> | |
42 "endif | |
43 | |
44 " Set nice colors | |
45 " background for normal text is light grey | |
46 " Text below the last line is darker grey | |
47 " Cursor is green, Cyan when ":lmap" mappings are active | |
48 " Constants are not underlined but have a slightly lighter background | |
49 highlight Normal guibg=grey90 | |
50 highlight Cursor guibg=Green guifg=NONE | |
51 highlight lCursor guibg=Cyan guifg=NONE | |
52 highlight NonText guibg=grey80 | |
53 highlight Constant gui=NONE guibg=grey95 | |
54 highlight Special gui=NONE guibg=grey95 | |
55 | |
56 endif |