leetcode.vim icon indicating copy to clipboard operation
leetcode.vim copied to clipboard

Command to restore previous session?

Open shankyty opened this issue 5 years ago • 1 comments

Is there a way save filter preference which are defined in below variables and command which will restore my vim LeetCode session?

b:leetcode_categories   ['algorithms']
b:leetcode_sort_column  level
b:leetcode_sort_order  asc
b:leetcode_buffer_topic  dynamic-programming
b:leetcode_state       All
b:leetcode_buffer_type  topic
b:leetcode_difficulty  All

shankyty avatar Jul 06 '20 05:07 shankyty

If you add the commands to your .vimrc (or init.vim if you are using neovim), the preferences will persist between sessions. If you are referring to having the code to a problem persist between sessions, you can write the file containing the code to disk. When you next open vim, if you do so in the directory where you saved the file, the code will persist between sessions.

destinationunknown avatar Mar 08 '21 18:03 destinationunknown