This plugin displays the relative position of the cursor within the buffer
on the left side of the screen using the sign
feature.
>
Current position-
Latest jump positionx
Latest change position
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.
With Vundle
Add this line to your .vimrc
Bundle 'junegunn/vim-scroll-position'
Then,
:BundleInstall
:help vim-scroll-position
" 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
You can configure how to display visual range on the gutter using g:scroll_position_visual
variable.
This looks better, but considerably slower than mode 1.