All Projects β†’ obcat β†’ vim-sclow

obcat / vim-sclow

Licence: MIT License
πŸ‘Ύ Text-based scrollbar for Vim

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to vim-sclow

V Bar
The virtual responsive crossbrowser scrollbar component for VueJS 2x
Stars: ✭ 216 (+839.13%)
Mutual labels:  scrollbar
ngx-malihu-scrollbar
Angular 2+ scrollbar customization using Malihu jQuery Custom Scrollbar plugin
Stars: ✭ 59 (+156.52%)
Mutual labels:  scrollbar
mousecase
A JavaScript utility enabling horizontal dragging on mousedown events πŸ–±
Stars: ✭ 35 (+52.17%)
Mutual labels:  scrollbar
Vue2 Scrollbar
The Simplest Pretty Scroll Area Component with custom scrollbar for Vue 2. https://bosnaufal.github.io/vue2-scrollbar
Stars: ✭ 233 (+913.04%)
Mutual labels:  scrollbar
react-custom-scroller
Super simple React component for creating a custom scrollbar cross-browser and cross-devices.
Stars: ✭ 30 (+30.43%)
Mutual labels:  scrollbar
scrollpup.js
Minimal beautiful bar to show scroll progress. Pure Javascript Plugin.MIT
Stars: ✭ 83 (+260.87%)
Mutual labels:  scrollbar
Optiscroll
Custom scrollbars for modern webapps. Supercharge the native scroll!
Stars: ✭ 201 (+773.91%)
Mutual labels:  scrollbar
Fluent-Design
Microsoft's Fluent Design with pure HTML/CSS/JS
Stars: ✭ 36 (+56.52%)
Mutual labels:  scrollbar
esl
Lightweight and flexible UI component library based on web components technology for creating basic UX modules
Stars: ✭ 53 (+130.43%)
Mutual labels:  scrollbar
floating-scroll
Lightweight jQuery plugin providing floating scrollbar functionality
Stars: ✭ 72 (+213.04%)
Mutual labels:  scrollbar
Slim Scroll
HTML element scroll bar as replacement for default browser's scroll-bar. Design as you want using CSS.
Stars: ✭ 251 (+991.3%)
Mutual labels:  scrollbar
react-scroll-locky
πŸ“œπŸ”’ – React full-cream "anti-scroll" library, you were looking for
Stars: ✭ 55 (+139.13%)
Mutual labels:  scrollbar
smooth-vuebar
Vue directive wrapper for smooth-scrollbar
Stars: ✭ 29 (+26.09%)
Mutual labels:  scrollbar
React Scroll Shadow
Pure CSS shadow to indicate more content in scrollable area
Stars: ✭ 229 (+895.65%)
Mutual labels:  scrollbar
vue-scrolly
Overlay scrollbar for Vue.js.
Stars: ✭ 24 (+4.35%)
Mutual labels:  scrollbar
Smooth Scrollbar
Customizable, Pluginable, and High-Performance JavaScript-Based Scrollbar Solution.
Stars: ✭ 2,695 (+11617.39%)
Mutual labels:  scrollbar
scrolly.js
Scrolly: fast vanilla JS scrollbar plugin with React.js Component & jQuery/Zepto/jBone plugin.
Stars: ✭ 18 (-21.74%)
Mutual labels:  scrollbar
ng-scrollable
Superamazing scrollbars for AngularJS
Stars: ✭ 58 (+152.17%)
Mutual labels:  scrollbar
scrollbar-width
Lightweight tool to get browser's scrollbars width of any browser.
Stars: ✭ 25 (+8.7%)
Mutual labels:  scrollbar
handy-scroll
Handy dependency-free floating scrollbar widget
Stars: ✭ 15 (-34.78%)
Mutual labels:  scrollbar

vim-sclow

Text-based scrollbar for Vim.

sclow eyecatch

Installation

Requires Vim compiled with +popupwin feature (Neovim is not supported).

If you use vim-plug, add the following line to your vimrc:

Plug 'obcat/vim-sclow'

You can use any other plugin manager.

Usage

No settings are required. A scrollbar will automatically appear on the right edge of the current window.

Tip

As you move the cursor and scroll, the scrollbar's position will be updated immediately.

On the other hand, if you scroll without moving the cursor (you can do this with <C-e> or <C-y> etc.), the scrollbar's position will be updated after the time specified with the updatetime option.

The default value of updatetime is 4000, i.e. 4 seconds. If you want to update the scrollbar's position as soon as possible, reduce the value of this option. I suggest around 100ms:

set updatetime=100

Note that updatetime also controls the delay before Vim writes its swap file (see :h updatetime).

Customization

You can customize some features.

Appearance

To customize scrollbar's appearance, you can use:

  • g:sclow_sbar_text (default: "\<Space>")
  • SclowSbar highlight group (default: links to Pmenu)

Examples:

sbar ex 1

let g:sclow_sbar_text = '*'
highlight link SclowSbar PmenuSel

sbar ex 2

let g:sclow_sbar_text = 'πŸ‘ΎπŸ‘Ύ'
highlight SclowSbar ctermbg=NONE guibg=NONE

πŸ“ I use iceberg.vim for color scheme.

You can also customize the offset of the scrollbar from the right border of the window with g:sclow_bar_right_offset (default: 0). Setting this to -1 helps to prevent the scrollbar from hiding the rightmost characters of the window.

Blocking

To disable scrollbar in a specific buffer, you can use:

  • g:sclow_block_filetypes (default: [])
  • g:sclow_block_buftypes (default: [])

Example:

let g:sclow_block_filetypes = ['netrw', 'nerdtree']
let g:sclow_block_buftypes = ['terminal', 'prompt']

Hiding

By default, when both the first and last line of the buffer are in the window, a full-length scrollbar will be shown.

full-length sbar

If you want to hide this, use the following:

let g:sclow_hide_full_length = 1

See help file for more information.

License

MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].