You could try to make do with C-v (visual block mode) g$ and gj/gk, albeit with more keystrokes.
On 1/14/15, Frank Fischer <[email protected]> wrote: > Am 13.01.2015 um 09:57 schrieb Alan Schmitt: >> Hello, >> >> I'm trying to configure evil to use `evil-next-visual-line' by default >> when I hit the 's' key. It works well in normal mode, but I cannot get >> it to work in visual mode. >> >> This is what I have in my configuration: >> >> #+begin_src emacs-lisp >> (define-key evil-motion-state-map "s" 'evil-next-visual-line) >> (define-key evil-normal-state-map "s" 'evil-next-visual-line) >> #+end_src >> >> To reproduce, take a file with a long line, enter visual-line-mode, go >> into visual mode and hit 's': the selection extends to the next line >> instead of the next visual line. > > The selection has nothing to do with the motion. The cursor will move to > the next visual line, but visual line mode *always* works on real lines, > not visual lines. That's why the selection always extends to real lines. > Dealing with selection of visual lines is not easy and there are many > things to consider, and nobody has ever implemented this stuff, sorry. > > Frank > > > _______________________________________________ > implementations-list mailing list > [email protected] > https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list > _______________________________________________ implementations-list mailing list [email protected] https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
