Here is my vim recipe and some note about vim.
It looks like this👇
Normal mode with file tree
Insert mode with complete suggestions
when error is found
-
clang
,cmake
is needed. (for the YCM plugin)sudo apt install clang cmake
Besides, your version of vim should be at least 7.4.1578 and have python or python3 support. You can run
vim --version
to check it. -
a Nerd Fonts is needed. the DejaVuSansMono Nerd Font is already in the folder and can be installed with a single click.
💡 you may face with problem like this: some icons becomes a chinese character
-
download this repository to ~/.vim
git clone https://github.com/LeoJhonSong/vimrc.git ~/.vim
-
in your
~/.vimrc
, add a line at the top:source ~/.vim/default.vim
💡 Why top?
By doing so you are allowed to cover settings with your own values, as you set your values after default.vim
is sourced.
Please try Linux 😁
No I don't use Mac 😁
Action | Keyboard Shortcut |
---|---|
Quit | Backspace |
Write | Space w |
Write and Quit | Space q |
Comment/Uncomment | Space m |
Display/Hide File Explorer | Space e |
Fold and Unfold Code | Enter |
Format Code | Space f |
Open File and Split Window Horizontally | Space h |
Open File and Split Window Vertically | Space v |
Open/Hide Terminal on side | Ctrl t |
Open Terminal in Tab | Space t |
Switch Tab | Space Tab or Space Shift Tab |
Write with Sudo | Space Ctrl w |
Create Folder Specific Dictionary | Space Ctrl z |
switch to the window above | Ctrl ↑ |
switch to the window below | Ctrl ↓ |
switch to the window left side | Ctrl ← |
switch to the window right side | Ctrl → |
increase the hight of window | F2 |
decrease the hight of window | F3 |
move left the vertical split line | F4 |
move right the vertical split line | F5 |
plugins are installed by vim-plug.