ianding1 / leetcode.vim

Solve LeetCode problems in Vim!
MIT License
311 stars 43 forks source link

Command to restore previous session? #54

Open shankyty opened 4 years ago

shankyty commented 4 years ago

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
destinationunknown commented 3 years ago

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.