vimpulse bug: visual-line does not select final newline

Craig Tenney tenneycr at gmail.com
Mon Aug 16 12:50:20 CEST 2010


Hello,

Using a recent snapshot of vimpulse (0.4+git, downloaded 08/2010) in
Emacs 23.2.1, it appears that linewise-visual mode (V) often fails to
select the trailing newline in the last line. This causes unexpected
results (i.e. not like vim) when used with the delete (d) and yank (y)
commands (and probably others). Similar behavior can be observed using
characterwise-visual mode (v) (e.g. '0v$' also fails to select the
trailing newline). For example, starting with:

one
two
three

and the cursor on line 'two', pressing 'Vd' results in:

one

three

rather than the expected:

one
three

Similarly, pressing 'Vyp' results in:

one
ttwowo
three

rather than:

one
two
two
three

Similar oddities result for variations with multiple lines, using
characterwise-visual mode, et cetera. I'm assuming this is tied up in
the visual-expand/contract-functions and associated needs-newline
variables.

Thank you to the developers and contributors to vimpulse. Finding it
has allowed me to consider using Emacs.

Regards,
Craig



More information about the implementations-list mailing list