comparison runtime/doc/various.txt @ 13359:81c348d40312 v8.0.1553

patch 8.0.1553: cannot see what digraph is used to insert a character commit https://github.com/vim/vim/commit/5f73ef8d20070cd45c9aea4dc33c2e0657f5515c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 27 21:09:30 2018 +0100 patch 8.0.1553: cannot see what digraph is used to insert a character Problem: Cannot see what digraph is used to insert a character. Solution: Show the digraph with the "ga" command. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Tue, 27 Feb 2018 21:15:06 +0100
parents acd7eaa13d2b
children 02b3f719eacb
comparison
equal deleted inserted replaced
13358:0a3d1708d414 13359:81c348d40312
1 *various.txt* For Vim version 8.0. Last change: 2018 Feb 25 1 *various.txt* For Vim version 8.0. Last change: 2018 Feb 27
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
38 < See |:fixdel| if your <Del> key does not do what you 38 < See |:fixdel| if your <Del> key does not do what you
39 want. 39 want.
40 40
41 :as[cii] or *ga* *:as* *:ascii* 41 :as[cii] or *ga* *:as* *:ascii*
42 ga Print the ascii value of the character under the 42 ga Print the ascii value of the character under the
43 cursor in decimal, hexadecimal and octal. For 43 cursor in decimal, hexadecimal and octal.
44 example, when the cursor is on a 'R': 44 Mnemonic: Get Ascii value.
45
46 For example, when the cursor is on a 'R':
45 <R> 82, Hex 52, Octal 122 ~ 47 <R> 82, Hex 52, Octal 122 ~
46 When the character is a non-standard ASCII character, 48 When the character is a non-standard ASCII character,
47 but printable according to the 'isprint' option, the 49 but printable according to the 'isprint' option, the
48 non-printable version is also given. When the 50 non-printable version is also given.
49 character is larger than 127, the <M-x> form is also 51
50 printed. For example: 52 When the character is larger than 127, the <M-x> form
53 is also printed. For example:
51 <~A> <M-^A> 129, Hex 81, Octal 201 ~ 54 <~A> <M-^A> 129, Hex 81, Octal 201 ~
52 <p> <|~> <M-~> 254, Hex fe, Octal 376 ~ 55 <p> <|~> <M-~> 254, Hex fe, Octal 376 ~
53 (where <p> is a special character) 56 (where <p> is a special character)
57
54 The <Nul> character in a file is stored internally as 58 The <Nul> character in a file is stored internally as
55 <NL>, but it will be shown as: 59 <NL>, but it will be shown as:
56 <^@> 0, Hex 00, Octal 000 ~ 60 <^@> 0, Hex 00, Octal 000 ~
61
57 If the character has composing characters these are 62 If the character has composing characters these are
58 also shown. The value of 'maxcombine' doesn't matter. 63 also shown. The value of 'maxcombine' doesn't matter.
59 Mnemonic: Get Ascii value. {not in Vi} 64
65 If the character can be inserted as a digraph, also
66 output the two characters that can be used to create
67 the character:
68 <ö> 246, Hex 00f6, Oct 366, Digr o: ~
69 This shows you can type CTRL-K o : to insert ö.
70
71 {not in Vi}
60 72
61 *g8* 73 *g8*
62 g8 Print the hex values of the bytes used in the 74 g8 Print the hex values of the bytes used in the
63 character under the cursor, assuming it is in |UTF-8| 75 character under the cursor, assuming it is in |UTF-8|
64 encoding. This also shows composing characters. The 76 encoding. This also shows composing characters. The