Skip to content

flebel/vim-scroll-position

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-scroll-position

This plugin displays the relative position of the cursor within the buffer on the left side of the screen using the sign feature.

vim-scroll-position

  • > Current position
  • - Latest jump position
  • x Latest change position

Disclaimer

Unfortunately on the current version of Vim, updating signs slows down the rendering of the screen, both on Vim and GVim. It is the limitation of Vim itself, and there's not much we can do about it. If you observe a significant slowdown, I'm sorry but you may have to disable this plugin.

Installation

With Vundle

Add this line to your .vimrc

Bundle 'junegunn/vim-scroll-position'

Then,

:BundleInstall

Help

:help vim-scroll-position

Customization

" Default markers
let g:scroll_position_marker         = '>'
let g:scroll_position_visual_begin   = '^'
let g:scroll_position_visual_middle  = ':'
let g:scroll_position_visual_end     = 'v'
let g:scroll_position_visual_overlap = '<>'

" Additional markers disabled by default due to slow rendering
" let g:scroll_position_jump = '-'
" let g:scroll_position_change = 'x'

" Not to enable plugin by default
" let g:scroll_position_auto_enable = 0

set t_Co=256

hi SignColumn                  ctermbg=232
hi ScrollPositionMarker        ctermfg=208 ctermbg=232
hi ScrollPositionVisualBegin   ctermfg=196 ctermbg=232
hi ScrollPositionVisualMiddle  ctermfg=196 ctermbg=232
hi ScrollPositionVisualEnd     ctermfg=196 ctermbg=232
hi ScrollPositionVisualOverlap ctermfg=196 ctermbg=232
hi ScrollPositionChange        ctermfg=124 ctermbg=232
hi ScrollPositionJump          ctermfg=131 ctermbg=232

Display of visual range

You can configure how to display visual range on the gutter using g:scroll_position_visual variable.

let g:scroll_position_visual = 1

vim-scroll-position

let g:scroll_position_visual = 2

This looks better, but considerably slower than mode 1.

vim-scroll-position

About

Previously lived at junegunn/vim-scroll-position, taken down by its author in late 2014.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published