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

x/ddu_vim/deps.ts>op.splitkeep

Dark deno-powered UI framework for neovim/Vim
Go to Latest
variable op.splitkeep
import { op } from "https://deno.land/x/ddu_vim@v4.0.0/deps.ts";
const { splitkeep } = op;

The value of this option determines the scroll behavior when opening, closing or resizing horizontal splits.

Possible values are: cursor Keep the same relative cursor position. screen Keep the text on the same screen line. topline Keep the topline the same.

For the "screen" and "topline" values, the cursor position will be changed when necessary. In this case, the jumplist will be populated with the previous cursor position. For "screen", the text cannot always be kept on the same screen line when 'wrap' is enabled.

(default "cursor")

type

GlobalOption<string>