Vim set mark, jump back to mark

aliases
No value
tags
No value
description
No value
status
ai response
project
false
area
false
resource
false
title
Vim set mark, jump back to mark
created
2025-05-27T14:01:24
updated
2025-05-27T14:02:44

Chat GPT 4o 응답

In Vim, you can mark the current cursor position using the m{a-z} command, and jump back to it quickly. Here’s how to use it:


Mark current position

ma

🚀

Jump to the mark

`a     " Jump to exact position (line + column)"
'a     " Jump to beginning of the line containing the mark"

🧠 Pro tips


🧭 Use-case example:

  1. You’re editing a function.
  2. Set a mark: ma
  3. Jump to another place in the file.
  4. Need to return? Press `a or 'a.