With emacs, how to go to the pairing (balancing) parentheses

前端 未结 6 1177
感情败类
感情败类 2021-01-30 08:29

When cursor on one parentheses, how to jump to the pairing parentheses. Good to work in emacs -nw .

Just like % in Vim.

;;Afte

6条回答
  •  轮回少年
    2021-01-30 08:56

    As mentioned in emacs wiki (http://www.emacswiki.org/emacs/NavigatingParentheses):

    • C-M-n forward-list Move forward over a parenthetical group

    • C-M-p backward-list Move backward over a parenthetical group

    • C-M-f forward-sexp Move forward over a balanced expression

    • C-M-b backward-sexp Move backward over a balanced expression

    • C-M-k kill-sexp Kill balanced expression forward

    • C-M-SPC mark-sexp Put the mark at the end of the sexp.

    https://superuser.com/questions/677516/how-do-i-jump-to-the-opening-or-closing-paren-brace-in-emacs

提交回复
热议问题