Files
arch/gnome-dotfiles/.vimrc
2026-03-31 20:13:15 +08:00

36 lines
749 B
VimL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"显示行号
set number
"显示相对行号
set relativenumber
"高亮当前行
set cursorline
"语法高亮
syntax on
" 开启自动缩进,新的一行会自动与上一行对齐
set autoindent
" 在输入搜索词时,实时高亮显示匹配项(增量搜索)
set incsearch
" 高亮显示所有搜索结果
set hlsearch
" 搜索时忽略大小写
set ignorecase
" 如果搜索词中包含了大写字母,则自动切换为大小写敏感搜索
set smartcase
" 开启持久化撤销undo即使关闭再打开文件也能撤销之前的更改
set undofile
" undo目录
silent !mkdir -p ~/.cache/vim/undo
set undodir=~/.cache/vim/undo
" 剪贴板 gvim的功能
set clipboard=unnamedplus
" 接管鼠标事件
set mouse=a