Skip to content
Vim

Marks (Marque-pages)

Sauter à des positions dans ou entre fichiers avec marks.

#mark#navigation#bookmark

Code

vim
ma                  " set mark 'a' at cursor (lowercase = local to buffer)
mA                  " set mark 'A' (uppercase = global, file-level)
'a                  " jump to line of mark a (linewise)
`a                  " jump to exact column of mark a
:marks              " list marks in current buffer
:delmarks a         " delete mark a
:delmarks!          " delete all lowercase marks

" Built-in marks
`.                  " position of last change
``                  " position before last jump (toggle)
`<  `>              " start/end of last visual selection
`[  `]              " start/end of last yanked/pasted text
`^                  " position of last insert-mode exit