vim plugin to make global markers work like bookmarks
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This plugin change the behaviour of ` from.

                                                'A '0 `A `0
           `{A-Z0-9}    To the mark {A-Z0-9} in the file where it was set (not
                        a motion command when in another file).  {not in Vi}


                                                'A '0 `A `0
           `{A-Z0-9}    Edit the file containing the mark {A-Z0-9} if in another file
                        jump to the mark {A-Z0-9} in the file where it was set if
                        in the same file.

' is remapped to `.


I use marks to bookmark files that I use often and I don't care about the position inside the file. Usually I prefer to keep the cursor in the last position when I use the mark.

`V .vimrc
`G .gvimrc

Using this plugin `V reopens the .vimrc with the cursor in the last position and not in the position of the mark. If I also want to move the cursor I can use again `V or use only time 'V.

How to start to use marks

I think most vimmers don't use marks, because they are difficult to use.

I use vim-signature to make marks user-friendly and this autocmd:

" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
  autocmd BufReadPost *
    \ if line("'\"") > 0 && line("'\"") <= line("$") |
    \   exe "normal! g`\"" |
    \ endif


Like this plugin?

Bitdeli Badge