Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddu_vim/deps.ts>op.sidescrolloff

Dark deno-powered UI framework for neovim/Vim8
Go to Latest
variable op.sidescrolloff
import { op } from "https://deno.land/x/ddu_vim@v1.13.0/deps.ts";
const { sidescrolloff } = op;

The minimal number of screen columns to keep to the left and to the right of the cursor if 'nowrap' is set. Setting this option to a value greater than 0 while having |'sidescroll'| also at a non-zero value makes some context visible in the line you are scrolling in horizontally (except at beginning of the line). Setting this option to a large value (like 999) has the effect of keeping the cursor horizontally centered in the window, as long as one does not come too close to the beginning of the line. After using the local value, go back the global value with one of these two: > setlocal sidescrolloff< setlocal sidescrolloff=-1 < NOTE: This option is set to 0 when 'compatible' is set.