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.


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?

1 Answer 1


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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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