vim simple configuration settings

Common vim commands: https://juejin.cn/post/7070699702732783623

Split screen operation: https://linux265.com/course/vim-split-screen-editing.html

Use the command vim ~/.vimrc

set encoding=utf-8

set number

syntax on

set nocompatible

set nobackup

set noerrorbells

set noswapfile

set confirm

set mouse=a

set tabstop=4
set shiftwidth=4
set expandtab
set smarttab

set autoread

set cindent

set autoindent

set smartindent

set hlsearch

set background=dark

set showmatch

set ruler

set nocompatible

set foldenable

set fdm=syntax

"set fdm=manual

nnoremap <space> @=((foldclosed(line('.')<0)?'zc':'zo'))<CR>

set novisualbell

set laststatus=2

autocmd InsertLeave * se nocul

autocmd InsertEnter * se cul

set showcmd

set fillchars=vert:/

set fillchars=stl:/

set fillchars=stlnc:/

set wildmenu
set wildmode=longest:list,full

According to the command added by myself https://www.ruanyifeng.com/blog/2018/09/vimrc.html

Guess you like

Origin blog.csdn.net/frighting_ing/article/details/129227428