1- *eval.txt* For Vim version 7.4. Last change: 2013 Nov 08
1+ *eval.txt* For Vim version 7.4. Last change: 2013 Dec 08
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3200,7 +3200,7 @@ getchar([expr]) *getchar()*
32003200 If [expr] is 1, only check if a character is available, it is
32013201 not consumed. Return zero if no character available.
32023202
3203- Without { expr} and when { expr} is 0 a whole character or
3203+ Without [ expr] and when [ expr] is 0 a whole character or
32043204 special key is returned. If it is an 8-bit character, the
32053205 result is a number. Use nr2char() to convert it to a String.
32063206 Otherwise a String is returned with the encoded character.
@@ -3210,7 +3210,7 @@ getchar([expr]) *getchar()*
32103210 String when a modifier (shift, control, alt) was used that is
32113211 not included in the character.
32123212
3213- When { expr} is 1 only the first byte is returned. For a
3213+ When [ expr] is 1 only the first byte is returned. For a
32143214 one-byte character it is the character itself as a number.
32153215 Use nr2char() to convert it to a String.
32163216
@@ -4134,6 +4134,8 @@ maparg({name}[, {mode} [, {abbr} [, {dict}]]]) *maparg()*
41344134 (| mapmode-ic | )
41354135 "sid" The script local ID, used for <sid> mappings
41364136 (| <SID> | ).
4137+ "nowait" Do not wait for other, longer mappings.
4138+ (| :map-<nowait> | ).
41374139
41384140 The mappings local to the current buffer are checked first,
41394141 then the global mappings.
@@ -4447,6 +4449,9 @@ getpos({expr}) Get the position for {expr}. For possible values of {expr}
44474449 it is the offset in screen columns from the start of the
44484450 character. E.g., a position within a <Tab> or after the last
44494451 character.
4452+ Note that for '< and '> Visual mode matters: when it is "V"
4453+ (visual line mode) the column of '< is zero and the column of
4454+ '> is a large number.
44504455 This can be used to save and restore the cursor position: >
44514456 let save_cursor = getpos(".")
44524457 MoveTheCursorAround
@@ -5270,6 +5275,10 @@ setpos({expr}, {list})
52705275 character. E.g., a position within a <Tab> or after the last
52715276 character.
52725277
5278+ Note that for '< and '> changing the line number may result in
5279+ the marks to be effectively be swapped, so that '< is always
5280+ before '>.
5281+
52735282 Returns 0 when the position could be set, -1 otherwise.
52745283 An error message is given if {expr} is invalid.
52755284
0 commit comments