记录个人习惯的vim配置。
在~
目录下创建.vimrc
文件输入以下配置:
syntax on
set mouse=a
set number
set autoindent
set tabstop=4
set expandtab
set shiftwidth=4
set splitright
set showmode
set showcmd
set encoding=utf-8
set t_Co=256
filetype indent on
set showmatch
set hlsearch
set incsearch
set nobackup
set noswapfile
set noundofile
set nocompatible
set autoread
set foldenable
set history=1000
" set netrw
let g:netrw_winsize = 25
let g:netrw_liststyle = 3
let g:netrw_banner = 0
let g:netrw_browse_split = 2
let g:netrw_chgwin = 1
" map
noremap <C-F> <ESC>:/
noremap <C-B> <ESC>:Vex<CR>
inoremap jj <ESC>