1- *eval.txt* For Vim version 8.1. Last change: 2019 Jan 24
1+ *eval.txt* For Vim version 8.1. Last change: 2019 Jan 29
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -696,7 +696,7 @@ similar to -1. >
696696 :let otherblob = myblob[:] " make a copy of the Blob
697697
698698 If the first index is beyond the last byte of the Blob or the second index is
699- before the first byte , the result is an empty list. There is no error
699+ before the first index , the result is an empty list. There is no error
700700message.
701701
702702If the second index is equal to or greater than the length of the list the
@@ -2511,7 +2511,10 @@ remote_read({serverid} [, {timeout}])
25112511remote_send({server} , {string} [, {idvar} ])
25122512 String send key sequence
25132513remote_startserver({name} ) none become server {name}
2514- remove({list} , {idx} [, {end} ]) any remove items {idx} -{end} from {list}
2514+ remove({list} , {idx} [, {end} ]) any/List
2515+ remove items {idx} -{end} from {list}
2516+ remove({blob} , {idx} [, {end} ]) Number/Blob
2517+ remove bytes {idx} -{end} from {blob}
25152518remove({dict} , {key} ) any remove entry {key} from {dict}
25162519rename({from} , {to} ) Number rename (move) file from {from} to {to}
25172520repeat({expr} , {count} ) String repeat {expr} {count} times
@@ -6056,13 +6059,9 @@ line({expr}) The result is a Number, which is the line number of the file
60566059 line(".") line number of the cursor
60576060 line("'t") line number of mark t
60586061 line("'" . marker) line number of mark marker
6059- < *last-position-jump*
6060- This autocommand jumps to the last known position in a file
6061- just after opening it, if the '" mark is set: >
6062- :au BufReadPost *
6063- \ if line("'\"") > 1 && line("'\"") <= line("$") && &ft !~# 'commit'
6064- \ | exe "normal! g`\""
6065- \ | endif
6062+ <
6063+ To jump to the last known position when opening a file see
6064+ | last-position-jump | .
60666065
60676066line2byte({lnum} ) *line2byte()*
60686067 Return the byte count from the start of the buffer for line
@@ -6504,8 +6503,10 @@ min({expr}) Return the minimum value of all items in {expr}.
65046503 *mkdir()* *E739*
65056504mkdir({name} [, {path} [, {prot} ]])
65066505 Create directory {name} .
6506+
65076507 If {path} is "p" then intermediate directories are created as
65086508 necessary. Otherwise it must be "".
6509+
65096510 If {prot} is given it is used to set the protection bits of
65106511 the new directory. The default is 0755 (rwxr-xr-x: r/w for
65116512 the user readable for others). Use 0700 to make it unreadable
@@ -6514,9 +6515,17 @@ mkdir({name} [, {path} [, {prot}]])
65146515 with 0755.
65156516 Example: >
65166517 :call mkdir($HOME . "/tmp/foo/bar", "p", 0700)
6518+
65176519< This function is not available in the | sandbox | .
6520+
65186521 There is no error if the directory already exists and the "p"
6519- flag is passed (since patch 8.0.1708).
6522+ flag is passed (since patch 8.0.1708). However, without the
6523+ "p" option the call will fail.
6524+
6525+ The function result is a Number, which is 1 if the call was
6526+ successful or 0 if the directory creation failed or partly
6527+ failed.
6528+
65206529 Not available on all systems. To check use: >
65216530 :if exists("*mkdir")
65226531<
@@ -7325,6 +7334,9 @@ remove({list}, {idx} [, {end}]) *remove()*
73257334 Example: >
73267335 :echo "last item: " . remove(mylist, -1)
73277336 :call remove(mylist, 0, 9)
7337+ <
7338+ Use | delete() | to remove a file.
7339+
73287340remove({blob} , {idx} [, {end} ])
73297341 Without {end} : Remove the byte at {idx} from | Blob | {blob} and
73307342 return the byte.
@@ -7335,13 +7347,12 @@ remove({blob}, {idx} [, {end}])
73357347 Example: >
73367348 :echo "last byte: " . remove(myblob, -1)
73377349 :call remove(mylist, 0, 9)
7350+
73387351 remove({dict} , {key} )
73397352 Remove the entry from {dict} with key {key} . Example: >
73407353 :echo "removed " . remove(dict, "one")
73417354< If there is no {key} in {dict} this is an error.
73427355
7343- Use | delete() | to remove a file.
7344-
73457356rename({from} , {to} ) *rename()*
73467357 Rename the file by the name {from} to the name {to} . This
73477358 should also work to move files across file systems. The
@@ -9724,10 +9735,10 @@ type({expr}) The result is a Number representing the type of {expr}.
97249735 Dictionary: 4 | v:t_dict |
97259736 Float: 5 | v:t_float |
97269737 Boolean: 6 | v:t_bool | (v:false and v:true)
9727- None 7 | v:t_none | (v:null and v:none)
9728- Job 8 | v:t_job |
9729- Channel 9 | v:t_channel |
9730- Blob 10 | v:t_blob |
9738+ None: 7 | v:t_none | (v:null and v:none)
9739+ Job: 8 | v:t_job |
9740+ Channel: 9 | v:t_channel |
9741+ Blob: 10 | v:t_blob |
97319742 For backward compatibility, this method can be used: >
97329743 :if type(myvar) == type(0)
97339744 :if type(myvar) == type("")
@@ -10150,7 +10161,7 @@ all_builtin_terms Compiled with all builtin terminals enabled.
1015010161amiga Amiga version of Vim.
1015110162arabic Compiled with Arabic support | Arabic | .
1015210163arp Compiled with ARP support (Amiga).
10153- autocmd Compiled with autocommand support. | autocommand |
10164+ autocmd Compiled with autocommand support. (always true)
1015410165autochdir Compiled with support for 'autochdir'
1015510166autoservername Automatically enable | clientserver |
1015610167balloon_eval Compiled with | balloon-eval | support.
@@ -10159,6 +10170,7 @@ beos BeOS version of Vim.
1015910170browse Compiled with | :browse | support, and browse() will
1016010171 work.
1016110172browsefilter Compiled with support for | browsefilter | .
10173+ bsd Compiled on an OS in the BSD family (excluding macOS).
1016210174builtin_terms Compiled with some builtin terminals.
1016310175byte_offset Compiled with support for 'o' in 'statusline'
1016410176cindent Compiled with 'cindent' support.
@@ -10171,6 +10183,7 @@ comments Compiled with |'comments'| support.
1017110183compatible Compiled to be very Vi compatible.
1017210184cryptv Compiled with encryption support | encryption | .
1017310185cscope Compiled with | cscope | support.
10186+ cursorbind Compiled with | cursorbind | (always true)
1017410187debug Compiled with "DEBUG" defined.
1017510188dialog_con Compiled with console dialog support.
1017610189dialog_gui Compiled with GUI dialog support.
@@ -10182,7 +10195,7 @@ ebcdic Compiled on a machine with ebcdic character set.
1018210195emacs_tags Compiled with support for Emacs tags.
1018310196eval Compiled with expression evaluation support. Always
1018410197 true, of course!
10185- ex_extra | +ex_extra | , always true now
10198+ ex_extra | +ex_extra | ( always true)
1018610199extra_search Compiled with support for | 'incsearch' | and
1018710200 | 'hlsearch' |
1018810201farsi Compiled with Farsi support | farsi | .
@@ -10213,6 +10226,7 @@ gui_running Vim is running in the GUI, or it will start soon.
1021310226gui_win32 Compiled with MS Windows Win32 GUI.
1021410227gui_win32s idem, and Win32s system being used (Windows 3.1)
1021510228hangul_input Compiled with Hangul input support. | hangul |
10229+ hpux HP-UX version of Vim.
1021610230iconv Can use iconv() for conversion.
1021710231insert_expand Compiled with support for CTRL-X expansion commands in
1021810232 Insert mode.
@@ -10223,6 +10237,7 @@ langmap Compiled with 'langmap' support.
1022310237libcall Compiled with | libcall() | support.
1022410238linebreak Compiled with 'linebreak' , 'breakat' , 'showbreak' and
1022510239 'breakindent' support.
10240+ linux Linux version of Vim.
1022610241lispindent Compiled with support for lisp indenting.
1022710242listcmds Compiled with commands for the buffer list | :files |
1022810243 and the argument list | arglist | .
@@ -10274,14 +10289,15 @@ quickfix Compiled with |quickfix| support.
1027410289reltime Compiled with | reltime() | support.
1027510290rightleft Compiled with 'rightleft' support.
1027610291ruby Compiled with Ruby interface | ruby | .
10277- scrollbind Compiled with 'scrollbind' support.
10292+ scrollbind Compiled with 'scrollbind' support. (always true)
1027810293showcmd Compiled with 'showcmd' support.
1027910294signs Compiled with | :sign | support.
1028010295smartindent Compiled with 'smartindent' support.
1028110296spell Compiled with spell checking support | spell | .
1028210297startuptime Compiled with | --startuptime | support.
1028310298statusline Compiled with support for 'statusline' , 'rulerformat'
1028410299 and special formats of 'titlestring' and 'iconstring' .
10300+ sun SunOS version of Vim.
1028510301sun_workshop Support for Sun | workshop | has been removed.
1028610302syntax Compiled with syntax highlighting support | syntax | .
1028710303syntax_items There are active syntax highlighting items for the
@@ -10315,27 +10331,29 @@ user_commands User-defined commands.
1031510331vcon Win32: Virtual console support is working, can use
1031610332 'termguicolors' . Also see | +vtp | .
1031710333vertsplit Compiled with vertically split windows | :vsplit | .
10334+ (always true)
1031810335vim_starting True while initial source'ing takes place. | startup |
1031910336 *vim_starting*
1032010337viminfo Compiled with viminfo support.
10321- virtualedit Compiled with 'virtualedit' option.
10338+ virtualedit Compiled with 'virtualedit' option. (always true)
1032210339visual Compiled with Visual mode. (always true)
1032310340visualextra Compiled with extra Visual mode commands. (always
1032410341 true) | blockwise-operators | .
1032510342vms VMS version of Vim.
10326- vreplace Compiled with | gR | and | gr | commands.
10343+ vreplace Compiled with | gR | and | gr | commands. (always true)
1032710344vtp Compiled for vcon support | +vtp | (check vcon to find
1032810345 out if it works in the current console).
1032910346wildignore Compiled with 'wildignore' option.
1033010347wildmenu Compiled with 'wildmenu' option.
10331- win16 old version for MS-Windows 3.1 (always False )
10348+ win16 old version for MS-Windows 3.1 (always false )
1033210349win32 Win32 version of Vim (MS-Windows 95 and later, 32 or
1033310350 64 bits)
1033410351win32unix Win32 version of Vim, using Unix files (Cygwin)
1033510352win64 Win64 version of Vim (MS-Windows 64 bit).
10336- win95 Win32 version for MS-Windows 95/98/ME (always False )
10353+ win95 Win32 version for MS-Windows 95/98/ME (always false )
1033710354winaltkeys Compiled with 'winaltkeys' option.
1033810355windows Compiled with support for more than one window.
10356+ (always true)
1033910357writebackup Compiled with 'writebackup' default on.
1034010358xfontset Compiled with X fontset support | xfontset | .
1034110359xim Compiled with X input method support | xim | .
0 commit comments