Giter VIP home page Giter VIP logo

turbomark's Introduction

TurboMark - Mark and find lines in your open buffers on steroids

Overview

This plugin intends to replace the functionality of the m and ' keys that Vim provides in normal mode. By using this plugin, you don't need to memorize a register for each line you mark, you just mark it with m. Marked lines go into a list which is displayed by using the ' mapping. Upon pressing ', the quickfix window opens, populated with the already marked lines and the editor is automatically entered into search mode. This way, you can immediately type part of the line you've previously marked, hit double-enter (the first is to exit search-mode) and you're exactly where you want to be.

TurboMark saves your marks in a text file in your home directory so that it can reuse them when you fire VIM again. Keep in mind that the file paths are relative to your working directory when you opened VIM.

Installation

Just paste the package's contents into into your .vim directory.

Installing with Pathogen

  1. cd ~/.vim/bundle
  2. git clone git://github.com/kbairak/TurboMark.git

Usage

  • Press m to mark a line.
  • Press ' to open the quickfix window in search mode, to quickly find the marked line you want.

Customization

You can override the default mappings in your .vimrc, like this:

nmap <silent> mm :TurboMark<CR>
nmap <silent> '' :TurboFind<CR>

A couple of options you may want to override in your .vimrc are:

let g:TurboMarkListFile = "~/.mylistfile.txt"
(defaults to '~/.TurboMarkList.txt')

This is where TurboMark will store your
marked lines so that they can be reused when starting VIM again.


let g:TurboMarkMax = 30  (defaults to 100)

This is the maximum number of marked lines that TurboMark will remember

turbomark's People

Contributors

kbairak 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.