vim-minimap


Ⅰ. 插件描述

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

Ⅱ. 基本信息

创建日期:  2014-07-24
使用用户:  315
Github星:  612
插件作者:  Séverin Lemaignan

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'severin-lemaignan/vim-minimap'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'severin-lemaignan/vim-minimap'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'severin-lemaignan/vim-minimap'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/severin-lemaignan/vim-minimap

Ⅳ. 文档说明

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](https://github.com/asciimoo/drawille) 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

添加新评论