A few colon commands are available. Some are a little different. *:ve* *:version* :ve[rsion] Print the version number of the editor. :se[t] or :se[t] all Show all options. :se[t] {option}! or :se[t] inv{option} Toggle option: Invert value. {not in Vi} :se[t] {option}? Show value of {option}. :se[t] {option} Toggle option: set, switch it on. Number option: show value. String option: show value. :se[t] no{option} Toggle option: Reset, switch it off. :se[t] [no]is [no]hls Incremental search and highlight search :se[t] [no]ic [no]is [no]nu [no]et ts=# sw=# As in vim, et, ts and sw are per buffer/document. The long form of the names is also supported. 'nu' depends on platform support 'nu' is per window, but most platforms make it global. :[count]ta[g] Jump to [count] newer entry in tag stack (default 1). :[count]po[p] Jump to [count] older entry in tag stack (default 1). :ts[elect] [{ident}] :[count]ta[g] {ident} Currently brings up platform specific dialog to search for class. :tags Show the contents of the tag stack. The active entry is marked with a '>'. {not in Vi} With ":!" and "!" type of commands, filename-modifiers are supported by jVi. See end of this file for a list of available filename-modifiers. *:!cmd* *:!* :!{cmd} Execute {cmd} with the shell. See also the 'shell' option. Any '!' in {cmd} is replaced with the previous external command (see also 'cpoptions'). But not when there is a backslash before the '!', then that backslash is removed. Example: ":!ls" followed by ":!echo ! \! \\!" executes "echo ls ! \!". the current file is checked |timestamp|. *:!!* :!! Repeat last ":!{cmd}". :[range]s[ubstitute]/{pattern}/{string}/[gpc] (also see Change, delete, filter) Example: :.,.+25s/foo/bar/gp Example: :'a,'b s//otherstuff Exampel: :.,$s/([^ ]*) (.*$)/\2 \1 NOTE: not using vim escaping For each line in [range] replace the first match of {pattern} with {string}. If the [g] flag is present replace every match on the line. If the [p] flag is present report each line that is modified. If the [c] flag is present, ask before making any change. NOTE: use the "RE Meta Escape" option to specify what characters need to be escaped. {string} may contain backreferences. :[range]d[elete]{count} :[range]g[lobal]/{pattern}/[cmd] Example: :g/foo/s/bar/baz/p The global command is not fully implemented. It only allows the execution of a few cmd. The allowed commands are :s[ubstitute], :d[elete] and :p[rint]. The undo/redo command will undo/redo the whole global command at once. The previous context mark will only be set once (with "''" you go back to where the cursor was before the global command). :w[rite] Write the current file. :w[rite] [*] Open a "save as" dialog to write the current file. :wa[ll] Write all changed buffers. :q[uit] Quit editing the current buffer. Closes its associated window. Will activated the previously active, MRU, window. :f[ile] Prints the current file name and other flie information. :clo[se] Close the current window. :on[ly] Make the current window the only one on the screen. All other windows are closed. :files :buffers :ls Show all buffers. The output format is dependent on the platform. Both the activation order and the MRU order may be shown. The numbers that can be used with both :e# and :e#- are shown. :e[dit] #[number] Without a [number], edit the previous active file. If [number] is positive, edit the [number]th file, files are numbered by the order in which they are opened. The first file is '#1'. :e[dit] #-number If [number] is negative, then the [number]th file from the MRU (most recently used) list is edited; 'e #-1' is the previous file; this is the same as 'e #'. Notice that repeatedly issueing 'e #-2' rotates among the last 3 files. {MRU not in Vim} File Name Modifiers *filename-modifiers* The file name modifiers can be used after "%" for external process commands. Not all vim modifiers are supported. And only one modifer can be specified. These modifiers can be given, in this order: :p Make file name a full path. Must be the first modifier. :h Head of the file name (the last component and any separators removed). Cannot be used with :e, :r or :t. Can be repeated to remove several components at the end. When the file name is an absolute path (starts with "/" for Unix; "x:\" for MS-DOS, WIN32, OS/2; "drive:" for Amiga), that part is not removed. When there is no head (path is relative to current directory) the result is empty. :t Tail of the file name (last component of the name). Must precede any :r or :e. :e Extension of the file name. Only makes sense when used alone. When there is no extension the result is empty. When there is only an extension (file name that starts with '.'), the result is empty. Can be repeated to include more extensions. If there are not enough extensions (but at least one) as much as possible are included.