|
| 1 | +leetcode.txt LeetCode client |
| 2 | + |
| 3 | +INTRODUCTION *leetcode* |
| 4 | + |
| 5 | +This plugin makes it possible to solve LeetCode problems in Vim. |
| 6 | + |
| 7 | +COMMANDS *leetcode-commands* |
| 8 | + |
| 9 | + *:LeetCodeList* |
| 10 | +:LeetCodeList List all the problems in a new window. |
| 11 | + |
| 12 | + *:LeetCodeTest* |
| 13 | + |
| 14 | +:LeetCodeTest Run the code in the current buffer with the default test |
| 15 | + input. |
| 16 | + |
| 17 | + *:LeetCodeSubmit* |
| 18 | +:LeetCodeSubmit Submit the code in the current buffer. |
| 19 | + |
| 20 | + *:LeetCodeSignIn* |
| 21 | +:LeetCodeSignIn Manually sign in. |
| 22 | + |
| 23 | + *:LeetCodeReset* |
| 24 | +:LeetCodeReset Reset the code in the current buffer to the initial code |
| 25 | + template. |
| 26 | + |
| 27 | + |
| 28 | +MAPPINGS *leetcode-mappings* |
| 29 | + |
| 30 | +These mappings are available in the problem list buffers. |
| 31 | + |
| 32 | + *leetcode-<CR>* |
| 33 | +<CR> Open the problem under the cursor or list the problems of |
| 34 | + the topic or company under the cursor. |
| 35 | + |
| 36 | + *leetcode-s* |
| 37 | +s List the submissions of the problem under the cursor. |
| 38 | + |
| 39 | + *leetcode-r* |
| 40 | +r Refresh the problem list (redownloading all the contents). |
| 41 | + |
| 42 | + *leetcode-S* |
| 43 | +S Sort the problem list. The command will prompt users to |
| 44 | + choose the column to be sorted and the sorting order. |
| 45 | + |
| 46 | + *leetcode-t* |
| 47 | +t Choose the time period of the frequency to show. This |
| 48 | + command is only available in the company problem list. |
| 49 | + |
| 50 | + |
| 51 | +CUSTOMIZATIONS *leetcode-customization* |
| 52 | + |
| 53 | + *g:leetcode_username* |
| 54 | +g:leetcode_username Set it to the username/email to allow autologin. |
| 55 | + |
| 56 | + Default: '' |
| 57 | + |
| 58 | + *g:leetcode_password* |
| 59 | +g:leetcode_password Set it to the password to allow autologin. |
| 60 | + |
| 61 | + Default: '' |
| 62 | + |
| 63 | + *g:leetcode_china* |
| 64 | +g:leetcode_china Set it to 1 to login to a LeetCode China account. |
| 65 | + |
| 66 | + Default: 0 |
| 67 | + |
| 68 | + *g:leetcode_solution_filetype* |
| 69 | +g:leetcode_solution_filetype |
| 70 | + The language to use to solve LeetCode problems. |
| 71 | + |
| 72 | + Default: "cpp" |
| 73 | + Values: "cpp", "java", "python", "python3", "csharp", |
| 74 | + "javascript", "ruby", "swift", "golang", "scala", |
| 75 | + "kotlin", "rust" |
| 76 | + |
| 77 | + vim:tw=78:ts=8:et:ft=help:norl: |
0 commit comments