Skip to content

LeoJhonSong/vimrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vimrc

Here is my vim recipe and some note about vim.


  1. Pre-Requirement
  2. Installation
    1. Linux
    2. Windows
    3. Mac
  3. Shortcuts
  4. Plugin List

It looks like this👇

Normal mode with file tree

Normal mode with file tree

Insert mode with complete suggestions

Insert mode with complete suggestions

when error is found

when error is found

Pre-Requirement

  • 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

Installation

Linux

  1. download this repository to ~/.vim

    git clone https://github.com/LeoJhonSong/vimrc.git ~/.vim
  2. 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.

Windows

Please try Linux 😁

Mac

No I don't use Mac 😁

Shortcuts

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

Plugin List

plugins are installed by vim-plug.