Skip to main content
fix minor duplicated word typo, and add a para of explination about the vim 'normal' command
Source Link

I end up having this in my vimrc

nnoremap <silent> ,m :marks abcdefghijklmnopqrstuvwxyz<CR>:normal! `

With withthis, ,m vim lists all my marks and then I only have to type the mark that I want to jump to, and hit enter.

The 'normal' command executes its command-line args as if you had pressed those keys in normal mode. We deliberately don't add a <CR> to this, part so that the user is presented with a half-typed command:

:normal! '

The ' at the end is the start of a 'go to mark' command, hence the user can just press 'A' (or whatever) and then enter.

I end up having this in my vimrc

nnoremap <silent> ,m :marks abcdefghijklmnopqrstuvwxyz<CR>:normal! `

With with ,m vim lists all my marks and then I only have to type the mark that I want to jump to and hit enter

I end up having this in my vimrc

nnoremap <silent> ,m :marks abcdefghijklmnopqrstuvwxyz<CR>:normal! `

With this, ,m vim lists all my marks and then I only have to type the mark that I want to jump to, and hit enter.

The 'normal' command executes its command-line args as if you had pressed those keys in normal mode. We deliberately don't add a <CR> to this, part so that the user is presented with a half-typed command:

:normal! '

The ' at the end is the start of a 'go to mark' command, hence the user can just press 'A' (or whatever) and then enter.

Source Link

I end up having this in my vimrc

nnoremap <silent> ,m :marks abcdefghijklmnopqrstuvwxyz<CR>:normal! `

With with ,m vim lists all my marks and then I only have to type the mark that I want to jump to and hit enter