代码拉取完成,页面将自动刷新
" Plugins in IdeaVim
set NERDTree
Plug 'preservim/nerdtree`
Plug 'https://github.com/preservim/nerdtree'
Plug 'https://github.com/scrooloose/nerdtree'
Plug 'scrooloose/nerdtree'
Plug 'nerdtree'
noremap st :NERDTree<CR>
Plug 'tpope/vim-surround'
set scrolloff=2
set keep-english-in-normal
" Do incremental searching.
set incsearch
set multicursor
map ma <Plug>(multicursor-mcv)
" ma to add a cursor
map mi <Plug>(multicursor-mcr)
" mi to edit all cursor
" Don't use Ex mode, use Q for formatting.
map Q gq
"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t
"" Map \r to the Reformat Code action
"map \r <Action>(ReformatCode)
"" Map <leader>d to start debug
"map <leader>d <Action>(Debug)
"" Map \b to toggle the breakpoint on the current line
"map \b <Action>(ToggleLineBreakpoint)
" Findsymotion-s) more examples here: https://jb.gg/share-ideavimrc
set ideajoin
let mapleader=" "
syntax on
set number
set nu
set relativenumber
set wrap
set showcmd
set wildmenu
set encoding=utf-8
set expandtab
set tabstop=2
set shiftwidth=2
set softtabstop=2
set smartcase
set ignorecase
noremap J 5j
noremap K 5k
noremap H 5h
noremap L 5l
noremap <C-j> M3jzz
noremap <C-k> M3kzz
" This is a annotation to Test
noremap R gt
noremap E gT
noremap <LEADER><CR> :nohlsearch<CR>
map s <nop>
map S :w<CR>
map Q :q<CR>
noremap <C-a> <Home>
noremap <C-e> <End>
noremap <C-p> <Up>
noremap <C-n> <Down>
noremap <C-b> <Left>
noremap <C-f> <Right>
inoremap <C-a> <Home>
inoremap <C-e> <End>
inoremap <C-p> <Up>
inoremap <C-n> <Down>
inoremap <C-b> <Left>
inoremap <C-f> <Right>
" Quick yan
map sc "+y
map sv "+p
map sx "+d
" cw => ciw
map cw ciw
Plug 'easymotion/vim-easymotion'
set easymotion
map s <Plug>(easymotion-prefix)
" Explain
" ## 多光标
" - <ma> 创建光标
" - <mi> 编辑所有光标
" ------
" ## surround
" - <cs"'> 用双引号替换单引号
" - <ds"> 删除周围的双引号
" - 使用 v 模式选中文本,然后 S" 将选中的文本用双引号包裹
" =============================================================
" 定义一个函数,用于替换当前行中除空格和斜杠之外的所有字符为短横线
function! ReplaceSymbolsInLine()
" 在当前行执行替换
silent execute 's/\%([^ \/]\)/-/g'
endfunction
" 将函数映射到一个快捷键,例如:在 Normal 模式下使用 <Leader>r
nnoremap <Leader>r :call ReplaceSymbolsInLine()<CR>
" 你也可以将此函数应用于选定的视觉区域
vnoremap <Leader>r :'<,'>s/\%([^ \/]\)/-/g<CR>
" ↑文档替换
" 用法: <leader> r
" /// state vimOrg status
" /// ----- ------ ------
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。