martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.26k stars 259 forks source link

Select empty space at end of line #883

Closed erf closed 3 years ago

erf commented 3 years ago

Maybe not an issue, but does anyone know if it is possible to select empty space at the end of lines?

I tried :x/ {2,}$, which should work in regex, but according to this, $ denotes the end of a range, how do i denote the end of a line with a sam command? I think maybe i fail to understand some sam/address concepts..

erf commented 3 years ago

I figured i can just look for a newline character.. 😄