Vim简单配置 .vimrc

Vim or Neovim

syntax enable
syntax on

inoremap jj <ESC>
autocmd InsertEnter * set timeoutlen=200
autocmd InsertLeave * set timeoutlen=1000

set belloff=all

set autoread
set number
set relativenumber
set hlsearch

set nocompatible
set nobackup
set noswapfile
set noundofile
set autochdir

set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab

set clipboard=unnamedplus

set fileencodings=utf-8,ucs-bom,utf-16le,gbk,default,latin1
set encoding=utf-8

set listchars=space:.,tab:>-
" 代码折叠
set foldmethod=indent
" 打开nvim时不折叠代码 
set nofoldenable

posted @ 2020-08-20 20:22  duohappy  阅读(98)  评论(0编辑  收藏  举报