0

The lisp program is structured language, and one can execute C-M-f(forward-sexp) to pick the next sibling element. Similarly, C-M-b, C-M-u, C-M-d are defined; they can be used to move the cursor to backward/upward/down the current lisp element.

Nowadays, there are many occasions to edit YAML files. Since YAML file is also a structured language, I thought it would be nice if we could similar operation for moving around, against these files.

Question

When editing YAML files, can I move the cursor according to the current YAML element being pointed by the cursor, just like we'd go up/down/next/previous element in the lisp snippet?

0

This would be a feature of the major mode you use. AFAICT, the only yaml-mode I can find does not offer such functionality, sadly. Maybe indent-tools provides what you're looking for?

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.