This article is written by SathiyaMoorthy
This article is part of the ongoing Vi / Vim Tips and Tricks series. There are 3 powerful M’s in VIM — Macro, Mark, and Map. Each is intended for a separate job.
- Macro for recording a job and repeating it.
- Mark for bookmarking a particular position in a file and then coming back to it.
- Map for mapping a job to a key, and then executing that job by that key.
In this article, let us look at various features of Vim’s Macro, Mark and Map along with practical examples.
(more…)
{ 8 comments }

My name is Ramesh Natarajan. I will be posting instruction guides, how-to, troubleshooting tips and tricks on Linux, database, hardware, security and web. My focus is to write articles that will either teach you or help you resolve a problem. Read more about