Code Monkey home page Code Monkey logo

simple_bookmarks.vim's Introduction

This is a mirror of http://www.vim.org/scripts/script.php?script_id=3826

Github project is at https://github.com/AndrewRadev/simple_bookmarks.vim

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
    :3
    :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 on github: https://github.com/AndrewRadev/simple_bookmarks.vim/issues

simple_bookmarks.vim's People

Contributors

andrewradev avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.