vimrc 配置(2020-12-06)

vimrc 配置

效果图:

image.png
mkdir ~/.vim
touch vimrc
vim vimrc # 然后开始配置vimrc
#配置完毕后,需要source vimrc
source ~/.vim/vimrc 

分屏的配置:

image.png

光标配置

image.png
image.png
image.png

风格插件

image.png
  1 set nocompatible                                                                                                                                  
  2 set encoding=utf-8
  3 set expandtab
  4 set tabstop=2
  5 set shiftwidth=2
  6 set softtabstop=2
  7
  8
  9
 10
 11 set number
 12 set norelativenumber
 13 set cursorline
 14 set showcmd
 15 set wildmenu
 16 set hlsearch
 17 set incsearch
 18 set ignorecase
 19 set smartcase
 20 map W :w
 21 map Q :q
 22 map s 
 23 map sl :set splitright:vsplit
 24 map sh :set nosplitright:vsplit
 25 map sj :set splitbelow:split
 26 map sk :set nosplitbelow:split
 27 let mapleader="\"
 28 map k k
 29 map j j
 30 map h h
 31 map l l
 32 map e :res +5
 33 map d :res -5
 34 map f :vertical resize+5
 35 map s :vertical resize-5
 36 map tu :tabe
 37 map th :-tabNext
 38 map tl :+tabNext
 39 map v tH
 40 map t tK
 41 noremap K 5k
 42 noremap J 5j
 43 noremap H 5h
 44 noremap L 5l
 45 noremap  :nohlsearch
 46 call plug#begin('~/.vim/plugged')
 47 Plug 'vim-airline/vim-airline'
 48 Plug 'connorholyday/vim-snazzy'
 49 call plug#end()
 50 color snazzy
 51 let g:SnazzyTransparent = 1

你可能感兴趣的:(vimrc 配置(2020-12-06))