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

x/ddc_vim/deps.ts>fn.winsaveview

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.winsaveview
import { fn } from "https://deno.land/x/ddc_vim@v3.8.0/deps.ts";
const { winsaveview } = fn;

Returns a Dictionary that contains information to restore the view of the current window. Use winrestview() to restore the view. This is useful if you have a mapping that jumps around in the buffer and you want to go back to the original view. This does not save fold information. Use the 'foldenable' option to temporarily switch off folding, so that folds are not opened when moving around. This may have side effects. The return value includes: lnum cursor line number col cursor column (Note: the first column zero, as opposed to what getcurpos() returns) coladd cursor column offset for 'virtualedit' curswant column for vertical movement (Note: the first column is zero, as opposed to what getcurpos() returns). After $ command it will be a very large number equal to v:maxcol. topline first line in the window topfill filler lines, only in diff mode leftcol first column displayed; only used when 'wrap' is off skipcol columns skipped Note that no option values are saved.

Returns

Promise<Record<string, unknown>>