Giter Club home page Giter Club logo

popup_scrollbar.vim's Introduction

Build Status

This is a loose port of https://github.com/Xuyuanp/scrollbar.nvim for upstream Vim with popup windows instead of floating windows. Many thanks to @Xuyuanp for the scrollbar positioning logic. If you're interested in a Neovim version of this plugin, you should just use the original one.

Demo

Usage

These three commands will enable, disable, and toggle the scrollbar:

:PopupScrollbarEnable
:PopupScrollbarDisable
:PopupScrollbarToggle

The first one installs autocommands that automatically show the scrollbar when switching to a window and update its size and position. Disabling removes these autocommands and toggling switches between the two.

If you'd rather just have it enabled automatically, put the following in your vimrc:

let g:popup_scrollbar_auto = 1

Customizing

If you'd like to customize the size, shape, or color of the scrollbar, check the built-in help docs (:help popup_scrollbar-settings) for details. Here's a short summary of the default settings:

let g:popup_scrollbar_max_size = 10
let g:popup_scrollbar_min_size = 3
let g:popup_scrollbar_shape = {
    \ 'head': '',
    \ 'body': '',
    \ 'tail': '',
    \ }
let g:popup_scrollbar_highlight = 'PopupScrollbar'
highlight default link PopupScrollbar Normal

Contributing

Pull requests are welcome, but take a look at CONTRIBUTING.md first for some guidelines. Be sure to abide by the CODE_OF_CONDUCT.md as well.

popup_scrollbar.vim's People

Contributors

andrewradev avatar

Stargazers

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