| Age | Commit message (Collapse) | Author | Files | Lines |
|
As seen in #669 I didn't *get it* one needs to have a special stub in
`visrc.lua` for everything to work properly. Putting at least a few
words in the man page might help some others like me in the future :)
Close #671
|
|
|
|
Fix #622
|
|
|
|
As noted on mdoc(7), in groff "Lk only accepts a single link-name argument; the remainder is misformatted.
The quotes makes groff treat the title as a single argument.
|
|
|
|
|
|
|
|
In vis ^ and $ always match the beginning / end of the range which
they are applied to. This differs from sam where they only match
at the beginning / end of a line.
Close #554
|
|
|
|
|
|
A few examples:
:x g1 selects the first line
:x g-1 selects the last line
:x g-3, selects the last three lines
:x g2,4 selects lines 2, 3 and 4
:x g,5 selects all lines up and including the fifth
:x g6, selects all lines starting from the sixth
:x g%2 selects all even lines
:x v%2 selects all odd lines
|
|
|
|
https://mentors.debian.net/package/vis
|
|
|
|
vis.1: added modes description
|
|
It does not really fit into the style of the rest of
the command language. Eventually we should be able
to express this kind of thing using a looping construct
based on the `X` and `Y` commands.
|
|
These do not really belong into the editor core. If desired they
could be implemented in Lua instead.
|
|
|
|
|
|
Hook it up via Lua to <C-k> in insert and replace mode.
Close #460 #475
|
|
<Enter> now searches for lines starting with command delimiters to
find the command boundaries.
To actually enter a literal new line use <Ctrl-v><Enter> in insert
mode or `o` / `O` in normal mode.
Also remove the special <Backspace> mapping, does not seem esential
use <Escape> to close the prompt window.
|
|
They are roughly equivalent, instead of
s/pattern/replacement/
to replace the first occurrence of pattern you can specify an address
to the change command:
/pattern/ c/replacement/
the only difference being that the first command is restricted to the
current line.
-+x/pattern/ c/replacement/
also restrictes matches to the current line, but performs the substitution
on the whole line not only the first match. Currently it is not possible
to only replace the n-th match as `s2/pattern/replacement/` would do
in sam(1).
A possible alternative syntax generalizing this concepts and applying
it to the `x` and `g` commands will be investigated in the future.
Global substitution as in
%s/pattern/replacement/g
can be performed using
x/pattern/ c/replacement/
|
|
& refers to the most recent complete match and \1 - \9
refer to the last sub-expression matches.
|
|
These are currently only updated for `x` and `y` sam commands,
whether they should be updated for other search related activities
(`/`, `?`, `n`, `N`, `*`, `#` etc.) needs to be investigated.
|
|
This is akin to sam where dot is set to the result of a command.
|
|
|
|
Boolean options can be toggled by appending `!` to the option name.
Close #435
|
|
Specifies how the current file should be saved, `atomic` which uses
rename(2) to atomically replace the file, `inplace` which truncates the
file and then rewrites it or `auto` which tries the former before falling
back to the latter. The rename method fails for symlinks, hardlinks,
in case of insufficient directory permissions or when either the file
owner, group, POSIX ACL or SELinux labels can not be restored.
The option defaults to `auto`.
|
|
This fixes a warning when displaying the manual page on macOS systems.
|
|
|
|
|