Skip to content

dgaleazzo/vim-vs-noscrollbar-sign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

VIM Visual Studio noscrollbar Sign

Noscrollbar demo

This is a fork of Giovanni Cavallanti vim-noscrollbar.

The goal is to emulate Visual Studio Code scrollbar sign indicators for any kind of plugins that use signs such as:

  • vim-gitgutter
  • syntastic
  • ale
  • vim-signify

etc..

Installation

I recommend installing pathogen.vim, and then simply copy and paste:

cd ~/.vim/bundle
git clone https://github.com/gcavallanti/vim-noscrollbar.git

Once help tags have been generated, you can view the manual with :help noscrollbar.

How to use

Simply add %{noscrollbar#statusline()} to the statusline option and you are done. Example:

set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %{noscrollbar#statusline()}

The default behavior returns a string of length 20 where the dash character '-' is used to render the track of the scrollbar and the hash character '#' is used to render the gripper. The scrollbar look can be customized by passing the length, the track character and the gripper character. For example the default look is set by calling %{noscrollbar#statusline(20,'-','#')}.

Powerline Integration

function! Noscrollbar(...)
    let w:airline_section_z = '%{noscrollbar#statusline(50)}'
endfunction
call airline#add_statusline_func('Noscrollbar')

High resolution mode

NoscrollBar comes with an high resolution mode. Check :help noscrollbar for details.

License

Copyright (c) Daniel Aurelio Galeazzo. Distributed under the same terms as vim-noscrollbar.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published