基础配置 1
- 简单的
vimrc 配置,其中要求git 是配置好的,并且有vim --version
>
8.1
> 8.1
>8.1
let mapleader=" "
set scrolloff=5
syntax on
set number
set relativenumber
set cursorline
set wrap
set showcmd
set wildmenu
set shortmess=atl
set softtabstop=4
set tabstop=4
set expandtab
set shiftwidth=4
au BufReadPost * if line(\) 1 && line(\) = line($) | exe normal! g\ | endif
set hlsearch
exec "nohlsearch"
set incsearch
set ignorecase
set smartcase
noremap = nzz
noremap - Nzz
noremap <LEADER><CR> :nohlsearch<CR>
noremap U 5k
noremap E 5j
map s <nop>
map S :w<CR>
map Q :q<CR>
map R :source $MYVIMRC<CR>
call plug
Plug 'vim-airline/vim-airline'
Plug 'connorholyday/vim-snazzy'
call plug
let g:SnazzyTransparent = 1
color snazzy
map ; :
map sl :set splitright<CR>:vsplit<CR>
map sh :set nosplitright<CR>:vsplit<CR>
map sj :set splitbelow<CR>:vsplit<CR>
map sk :set nosplitbelow<CR>:vsplit<CR>
map <LEADER>l <C-w>l
map <LEADER>k <C-w>k
map <LEADER>h <C-w>h
map <LEADER>j <C-w>j
map <up> :res +5<CR>
map <down> :res -5<CR>
map <left> :vertical resize-5<CR>
map <right> :vertical resize+5<CR>
map tu :tabe<CR>
map tn :-tabnext<CR>
map ti :+tabnext<CR>
map sv <C-w>t<C-w>H
map sh <C-w>t<C-w>K
|