A small plugin to create named bookmarks in Vim
Vim script Ruby
Latest commit aefad4f Feb 17, 2014 @AndrewRadev Merge pull request #11 from vesln/specs
Add specs
Failed to load latest commit information.
autoload Fix minor issues Jan 10, 2014
doc Implement some improvements on signs and highlighting Jan 10, 2014
plugin Version bump Jan 26, 2014
spec Add specs for Bookmark and DelBookmark Feb 17, 2014
Gemfile Test setup Feb 17, 2014
Gemfile.lock Test setup Feb 17, 2014
LICENSE Add a license Jun 23, 2012
README.md Update README.md Nov 28, 2011
Rakefile Test setup Feb 17, 2014
_project.vim Initial commit Nov 28, 2011


The plugin provides several commands to manage named bookmarks. This is similar to what you'd do with persistent marks, but brings the benefit of longer, more rememberable names.

Here's an example:

:edit ~/.vimrc
:Bookmark here

This will store a bookmark called "here" in the file ~/.vim_bookmarks (changeable through a setting). To jump to the mark, use :GotoBookmark

:GotoBookmark here

This will open the ~/.vimrc file and jump to the third line. The column is saved as well.

To delete the bookmark, use:

:DelBookmark here

Both :GotoBookmark and :DelBookmark are tab-completed with all known bookmarks.

The command :CopenBookmarks will load all marks in the quickfix window for easier navigating.

Note that bookmarks should be synchronized between vim instances. Anytime you add a mark in one vim instance, it should be available in all others. In practice, this is achieved by simply reading and writing the whole file on each update. I have yet to experiment to find out if there are any performance issues or race conditions. If you find any issues, please open a bug report in the bugtracker.