Skip to content

doesn't work well with gj/gk #23

@peterwu

Description

@peterwu

Let's say I have the following emacs-lisp code and the cursor rests at the letter t on the :ensure t line.

(use-package evil-commentary
  :ensure t
  :config
  (evil-commentary-mode +1))

If I do gcj, I'll get correct result. However, if I do gcgj, I'll get this:

(use-package evil-commentary
  :ensure ;; t
  ;; :config
  (evil-commentary-mode +1))

Note the ;; is in front of the letter t, instead for the entire line. This is not how vim behaves with the tpope/vim-commentary plugin.

This issue happens when (setq evil-respect-visual-line-mode t) as j/k are mapped to gj/gk respectively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions