-
-
Save DoveBoy/021d6470aecd111ebb083d482eabf678 to your computer and use it in GitHub Desktop.
Vim 配置文件
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" | |
" Description: Personal Vim .vimrc configuration file | |
" Author: 刘鹏 | |
" Date: 2021, Oct. 9 | |
" Corresponding: [email protected] | |
" | |
"================================ Syntax BEGIN ================================ | |
" 开启语法检测 | |
syntax enable | |
syntax on | |
"================================ Syntax END ================================ | |
"================================ Filetype BEGIN ================================ | |
" 开启文件类型检测 | |
filetype on | |
filetype indent on | |
filetype plugin indent on | |
"================================ Filetype END ================================ | |
"================================ Indect BEGIN ================================ | |
" 缩进设置 | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set smarttab | |
"================================ Indect END ================================ | |
"================================ Search BEGIN ================================ | |
" 高亮搜索结果 | |
set hlsearch | |
" 增量搜索 | |
set incsearch | |
"================================ Search END ================================ | |
"================================ Copy & Paste BEGIN ================================ | |
" 复制、粘贴设置 | |
set paste | |
set clipboard=unnamed | |
"================================ Copy & Paste END ================================ | |
autocmd InsertEnter * se cul | |
set number | |
set encoding=utf-8 | |
"======================== VIM Plug ================================= | |
call plug#begin('~/.vim/plugged') | |
" (1) 开始界面美化 | |
Plug 'mhinz/vim-startify' | |
" (2) 状态栏美化 | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
" (3) 增加代码缩进线条 | |
Plug 'Yggdroot/indentLine' | |
let g:indentLine_enabled = 1 | |
let g:indentLine_char_list = ['┆', '┊'] | |
" (4) 代码自动补全插件 | |
"Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
" (5) 文件目录辅助插件 | |
Plug 'preservim/nerdtree' | |
" Vim Awesome 网站 | |
call plug#end() | |
nnoremap <leader>v :NERDTreeFind<cr> | |
nnoremap <C-n> :NERDTree<CR> | |
nnoremap <C-t> :NERDTreeToggle<CR> | |
nnoremap <C-f> :NERDTreeFind<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment