2
This commit is contained in:
35
noctalia-dotfiles/.vimrc
Normal file
35
noctalia-dotfiles/.vimrc
Normal file
@ -0,0 +1,35 @@
|
||||
"显示行号
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user