1 Star 1 Fork 0

Hu_Stoking/ArchGitSynchronousRepo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.ideavimrc 2.57 KB
一键复制 编辑 原始数据 按行查看 历史
Hu_Stoking 提交于 2024-07-29 05:30 . change .ideavimrc
" 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
" /// ----- ------ ------
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hustoking/arch-git-synchronous-repo.git
git@gitee.com:hustoking/arch-git-synchronous-repo.git
hustoking
arch-git-synchronous-repo
ArchGitSynchronousRepo
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385