Download usr_doc.txt Page 1 *usr_toc.txt* For Vim version 7.4. Last change
Transcript
.\usr_doc.txt matchstr() matchlist() stridx() strridx() strlen() strchars() strwidth() strdisplaywidth() substitute() submatch() strpart() expand() iconv() byteidx() byteidxcomp() repeat() eval() Page 212 match of a pattern in a string like matchstr() and also return submatches first index of a short string in a long string last index of a short string in a long string length of a string in bytes length of a string in characters size of string when displayed size of string when displayed, deals with tabs substitute a pattern match with a string get a specific match in ":s" and substitute() get part of a string expand special keywords convert text from one encoding to another byte index of a character in a string like byteidx() but count composing characters repeat a string multiple times evaluate a string expression List manipulation: get() len() empty() insert() add() extend() remove() copy() deepcopy() filter() map() sort() reverse() uniq() split() join() range() string() call() index() max() min() count() repeat() *list−functions* get an item without error for wrong index number of items in a List check if List is empty insert an item somewhere in a List append an item to a List append a List to a List remove one or more items from a List make a shallow copy of a List make a full copy of a List remove selected items from a List change each List item sort a List reverse the order of a List remove copies of repeated adjacent items split a String into a List join List items into a String return a List with a sequence of numbers String representation of a List call a function with List as arguments index of a value in a List maximum value in a List minimum value in a List count number of times a value appears in a List repeat a List multiple times Dictionary manipulation: get() len() has_key() empty() remove() extend() filter() map() keys() values() items() copy() deepcopy() string() max() min() count() *dict−functions* get an entry without an error for a wrong key number of entries in a Dictionary check whether a key appears in a Dictionary check if Dictionary is empty remove an entry from a Dictionary add entries from one Dictionary to another remove selected entries from a Dictionary change each Dictionary entry get List of Dictionary keys get List of Dictionary values get List of Dictionary key−value pairs make a shallow copy of a Dictionary make a full copy of a Dictionary String representation of a Dictionary maximum value in a Dictionary minimum value in a Dictionary count number of times a value appears Floating point computation: float2nr() abs() *float−functions* convert Float to Number absolute value (also works for Number)