leetcode.vim
leetcode.vim copied to clipboard
Command to restore previous session?
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
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.