大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。
Jetbrains全系列IDE稳定放心使用
1、 打开如图所示的文件夹:C:\Users\你的用户名\
2、创建_ideavimrc 文件
3、文件内添加以下代码:
let mapSpace=' '
set hlsearch
set incsearch
set ignorecase
set smartcase
set showmode
set number
set relativenumber
set scrolloff=3
set history=100000
set clipboard=unnamed
" clear the highlighted search result
nnoremap <Space>sc :nohlsearch<CR>
nnoremap <Space>fs :w<CR>
nnoremap <Space>? :action GotoAction<CR>
nnoremap gd :action GotoDeclaration<CR>
nnoremap gi :action GotoImplementation<CR>
" project search
nnoremap <Space>ps :action SearchEverywhere<CR>
nnoremap <Space>pf :action GotoFile<CR>
nnoremap <Space>fu :action FindUsages<CR>
" Quit normal mode
nnoremap <Space>q :q<CR>
nnoremap <Space>Q :qa!<CR>
" Move half page faster
nnoremap <Space>d <C-d>
nnoremap <Space>u <C-u>
" Insert mode shortcut
inoremap <C-h> <Left>
inoremap <C-j> <Down>
inoremap <C-k> <Up>
inoremap <C-l> <Right>
inoremap <C-a> <Home>
inoremap <C-e> <End>
inoremap <C-d> <Delete>
" Quit insert mode
inoremap jj <Esc>
inoremap jk <Esc>
inoremap kk <Esc>
" Quit visual mode
vnoremap v <Esc>
" Move to the start of line
nnoremap H ^
" Move to the end of line
nnoremap L $ " Redo
nnoremap U <C-r>
" Yank to the end of line
nnoremap Y y$
" quit ==> close current window
nnoremap <Space>q <C-W>w
" Window operation
nnoremap <Space>ww <C-W>w
nnoremap <Space>wd <C-W>c
nnoremap <Space>wj <C-W>j
nnoremap <Space>wk <C-W>k
nnoremap <Space>wh <C-W>h
nnoremap <Space>wl <C-W>l
nnoremap <Space>ws <C-W>s
nnoremap <Space>w- <C-W>s
nnoremap <Space>wv <C-W>v
nnoremap <Space>w\| <C-W>v
" Tab operation nnoremap tn gt nnoremap tp gT
" ==================================================
" Show all the provided actions via `:actionlist`
" ==================================================
" built in search looks better
nnoremap / :action Find<CR>
" but preserve ideavim search
nnoremap <Space>/ /
nnoremap <Space>;; :action CommentByLineComment<CR>
nnoremap <Space>bb :action ToggleLineBreakpoint<CR>
nnoremap <Space>br :action ViewBreakpoints<CR>
nnoremap <Space>cv :action ChangeView<CR>
nnoremap <Space>cd :action ChooseDebugConfiguration<CR>
nnoremap <Space>ga :action GotoAction<CR>
nnoremap <Space>gc :action GotoClass<CR>
nnoremap <Space>gd :action GotoDeclaration<CR>
nnoremap <Space>gf :action GotoFile<CR>
nnoremap <Space>gi :action GotoImplementation<CR>
nnoremap <Space>gs :action GotoSymbol<CR>
nnoremap <Space>gt :action GotoTest<CR>
nnoremap <Space>fp :action ShowFilePath<CR>
nnoremap <Space>ic :action InspectCode<CR>
nnoremap <Space>mv :action ActivateMavenProjectsToolWindow<CR>
nnoremap <Space>oi :action OptimizeImports<CR>
nnoremap <Space>pm :action ShowPopupMenu<CR>
nnoremap <Space>rc :action ChooseRunConfiguration<CR>
nnoremap <Space>re :action RenameElement<CR>
nnoremap <Space>rf :action RenameFile<CR>
nnoremap <Space>se :action SearchEverywhere<CR>
nnoremap <Space>su :action ShowUsages<CR>
nnoremap <Space>tc :action CloseActiveTab<CR>
nnoremap <Space>tl Vy<CR>:action ActivateTerminalToolWindow<CR>
vnoremap <Space>tl y<CR>:action ActivateTerminalToolWindow<CR>
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/187201.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...