Giter Site home page Giter Site logo

nemo-nullius / vim-minimap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from severin-lemaignan/vim-minimap

0.0 1.0 0.0 451 KB

A Sublime-like minimap for VIM, based on the Drawille console-based drawing library

License: MIT License

Python 93.38% Vim Script 6.62%

vim-minimap's Introduction

A code minimap for Vim

The Sublime text-editor can display an useful overview of the code as a minimap sidebar.

We can implement the same thing in Vim, relying on the Drawille library to 'draw' in text mode.

minimap in action

This code is made available under a MIT license. See LICENSE for details.

Features

  • displays the minimap of the currently active buffer (and updates when switching to a different buffer)
  • synchronized scrolling
  • live update while typing

Installation

Note that this extension requires Vim with Python support.

Vundle

With vundle, simply add: Plugin 'severin-lemaignan/vim-minimap' to your .vimrc and run :PluginInstall from vim.

Janus

With Janus just clone inside .janus.

cd ~/.janus
git clone https://github.com/severin-lemaignan/vim-minimap.git vim-minimap

AUR

AUR just has vim-minimap-git package.

Usage

:Minimap to show the minimap, :MinimapClose to hide it.

Default mappings: <Leader>mm to display the minimap, <Leader>mc to close it.

To overwrite the default keybindings, using following settings in ``.vimrc'':

let g:minimap_show='<leader>ms'
let g:minimap_update='<leader>mu'
let g:minimap_close='<leader>gc'
let g:minimap_toggle='<leader>gt'

Settings

You can customize the color of the highlighting by setting g:minimap_highlight in your vimrc:

let g:minimap_highlight='Visual'

Note: To find out which highlights are available on your vim installation use :hi to get the list.

Troubleshooting

Weird display

Problem:

Certain fonts do not display plain dots and empty spaces, but plain dots and circles for braille characters.

For example, with Inconsolata:

image

Solution:

As a result, you may want to use any other font that display braille characters in a way that suit the minimap plugin, like Ubuntu Mono, or Droid Sans Mono.

With Ubuntu Mono:

image

vim-minimap's People

Contributors

adam900710 avatar adelarsq avatar albfan avatar arcthur avatar asciimoo avatar dpc avatar dragonxlwang avatar gbin avatar mipmip avatar ron89 avatar severin-lemaignan avatar skadge avatar sonwell avatar swivelgames avatar yramagicman avatar

Watchers

 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.