Skip to content

Weird scratch_persistence_file behavior #36

@ljohnston

Description

@ljohnston

Hi,

I clearly must be doing something wrong, or I don't understand how persistence is supposed to work.

Given this vimrc:

set runtimepath^=~/.vim/plugged/scratch.vim
set nocompatible
filetype plugin indent on

let g:scratch_persistence_file=$HOME . '/scratch_test'

I can't get anything to show up in ~/scratch_test.

$ vim -u ~/.minimal_vimrc

Open scratch buffer with 'gs'
Enter text / esc / c-w o / :q

~/scratch_test remains empty.

I've confirmed g:scratch_persistence_file is getting correctly set to scratch_test in my home directory (as an absolute path).

What am I doing wrong?

Thanks,
Lance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions