vsvimrc
set enc=utf-8
set fencs=utf-8,gbk,big5,cp936,gb18030,gb2312,utf-16
set fenc=utf-8
set shortmess=atI
"禁止bell
set belloff=all
set visualbell
set t_vb=
let mapleader = "\<Space>"
inoremap jj <ESC>
"-------------------------------------------------------------------------------
" 注释 vim-commentary
"-------------------------------------------------------------------------------
" toggle注释单行
" normal mode: gcc
" toggle 多行注释
" 首先进入visual mode,然后选择。gc toggle注释
"-------------------------------------------------------------------------------
" 缩进
"-------------------------------------------------------------------------------
" visual mode
" shift+< 然后 > 增加缩进
" shift+> 然后 > 减少缩进
" normal mode
" shift + > + >
" shift + < + <
"-------------------------------------------------------------------------------
" 大小写转换
"-------------------------------------------------------------------------------
" visual mode
" ~
"-------------------------------------------------------------------------------
" 视图
"-------------------------------------------------------------------------------
" normal mode
" <C-O> <C-I> zz
" <C-E> <C-D>
" <C-Y> <C-U>
" G gg
"-------------------------------------------------------------------------------
" 选择
"-------------------------------------------------------------------------------
" Make vaa select the entire file...
xmap aa VGo1G
set nocompatible
set showcmd
set mouse=a
" 启用256色
set t_Co=256
" 关闭自动折行
set nowrap
"Square up visual selections...
set virtualedit=block
" Make BS/DEL work as expected in visual modes (i.e. delete the selected text)...
xmap <BS> x
"可随时用倒退键删除
set backspace=2
"行折叠
map <leader>z :set invwrap <CR>
"窗口分隔
map <leader>= :vsp <CR>
map <leader>- :sp <CR>
"窗口跳转
"<C-W> jkhl
"-------------------------------------------------------------------------------
" 搜索
"-------------------------------------------------------------------------------
" 搜索时,高亮显示匹配结果。
set hlsearch
"highlight clear Search
"清除高亮
map <leader>z :nohl <CR>
" 搜索设置
set ignorecase
set incsearch
set clipboard=unnamed
nnoremap gd :vsc VAssistX.GotoImplementation<CR>
" auto save without plugin
autocmd TextChanged,TextChangedI * silent write
.ideavimrc
set enc=utf-8
set fencs=utf-8,gbk,big5,cp936,gb18030,gb2312,utf-16
set fenc=utf-8
set shortmess=atI
"禁止bell
set belloff=all
set visualbell
set t_vb=
let mapleader = "\<Space>"
inoremap jj <ESC>
"-------------------------------------------------------------------------------
" 注释 vim-commentary
"-------------------------------------------------------------------------------
" toggle注释单行
" normal mode: gcc
" toggle 多行注释
" 首先进入visual mode,然后选择。gc toggle注释
"-------------------------------------------------------------------------------
" 缩进
"-------------------------------------------------------------------------------
" visual mode
" shift+< 然后 > 增加缩进
" shift+> 然后 > 减少缩进
" normal mode
" shift + > + >
" shift + < + <
"-------------------------------------------------------------------------------
" 大小写转换
"-------------------------------------------------------------------------------
" visual mode
" ~
"-------------------------------------------------------------------------------
" 视图
"-------------------------------------------------------------------------------
" normal mode
" <C-O> <C-I> zz
" <C-E> <C-D>
" <C-Y> <C-U>
" G gg
"-------------------------------------------------------------------------------
" 选择
"-------------------------------------------------------------------------------
" Make vaa select the entire file...
xmap aa VGo1G
set nocompatible
set showcmd
set mouse=a
" 启用256色
set t_Co=256
" 关闭自动折行
set nowrap
"Square up visual selections...
set virtualedit=block
" Make BS/DEL work as expected in visual modes (i.e. delete the selected text)...
xmap <BS> x
"可随时用倒退键删除
set backspace=2
"行折叠
map <leader>w :set invwrap <CR>
"窗口分隔
map <leader>= :vsp <CR>
map <leader>- :sp <CR>
"窗口跳转
"<C-W> jkhl
"-------------------------------------------------------------------------------
" 搜索
"-------------------------------------------------------------------------------
" 搜索时,高亮显示匹配结果。
set hlsearch
"highlight clear Search
"清除高亮
map <leader>z :nohl <CR>
" 搜索设置
set ignorecase
set incsearch
set clipboard=unnamed
" auto save without plugin
autocmd TextChanged,TextChangedI * silent write
标签:set,vimrc,shift,----------------------------------------------------------------
From: https://www.cnblogs.com/Searchor/p/17455513.html