""""""""""""""""""""""""""""""""""""""配置篇""""""""""""""""""""""""""""""""""""""
set showmatch
set hlsearch
set incsearch
set ignorecase
set smartcase
set history=3000000
set commentary
:set vb
:set keep-english-in-normal
""""""""""""""""""""""""""""""""""""""基础篇""""""""""""""""""""""""""""""""""""""
"debug神器
nmap :action StepOver
nmap :action Resume
nmap :action StepOut
nmap :action ForceStepInto
"移动专精
vmap
vmap
vmap 10zh
vmap 10zl
"移动专精
"imap ja
"imap ka
"imap 10zhi
"imap l10zla
imap
imap
imap
imap
imap
"左右视野
nnoremap zH 50zh
nnoremap zL 50zl
"^$符号太难按了
map gh ^
map gl $
"代码提示
"imap :action HippieCompletiona
"imap :action HippieBackwardCompletiona
""""""""""""""""""""""""""""""""""""""重构篇""""""""""""""""""""""""""""""""""""""
"元素名称重构
noremap re :action RenameElement
"移动重构
noremap mv :action Move
"成员变量转换为静态变量重构(配合移动重构有奇效)
noremap ms :action MakeStatic
"静态变量转换为成员变量重构
noremap ci :action ConvertToInstanceMethod
"内联重构(合并无效变量无效方法)
noremap il :action Inline
"抽取方法重构
noremap em :action ExtractMethod
"抽取接口重构
noremap ei :action ExtractInterface
"字段的访问限制
noremap ef :action EncapsulateFields
"切换方法为方法对象
noremap rmo :action ReplaceMethodWithMethodObject
"引入临时变量
noremap iv :action IntroduceVariable
"引入常量
noremap ic :action IntroduceConstant
"引入方法参数
noremap ip :action IntroduceParameter
"引入字段
noremap if :action IntroduceField
"引入参数对象(指定参数)
noremap po :action IntroduceParameterObject
"方法下放到子类
noremap pd :action MemberPushDown
"方法上移到父类
noremap pu :action MembersPullUp
"文件名称重构
noremap RF :action RenameFile
"修改方法签名
noremap cs :action ChangeSignature
""""""""""""""""""""""""""""""""""""""跳转篇""""""""""""""""""""""""""""""""""""""
"搜索任何位置
noremap te :action SearchEverywhere
"特殊变量跳转
nnoremap ts mm`m:action GotoSymbol
"动作跳转
nnoremap ta mm`m:action GotoAction
"文件跳转
noremap tf mm`m:action GotoFile
"测试类跳转
noremap tt mm`m:action GotoTest
"java类跳转
noremap tc mm`m:action GotoClass
"文本跳转
noremap tp mm`m:action FindInPath
"跳转下个报错处
noremap ne mm`m:action GotoNextError
"跳转上个报错处
noremap pe mm`m:action GotoPreviousError
"从子类方法跳到父类的方法
noremap gs mm`m:action GotoSuperMethod
"跳到方法实现
noremap gi mm`m:action GotoImplementation
"跳转到下个改动处
noremap g, mm`m:action JumpToLastChange
"跳转到上个改动处
noremap g; mm`m:action JumpToNextChange
"最近查看文件间相互跳转
noremap rf :action RecentFiles
"最近改动文件间相互跳转
noremap rF :action RecentChangedFiles
"项目之间的跳转(上一个)
noremap nw :action NextProjectWindow
"项目之间的跳转(下一个)
noremap pw :action PreviousProjectWindow
""""""""""""""""""""""""""""""""""""""SQL篇""""""""""""""""""""""""""""""""""""""
"sql提交
noremap sc :action Console.Transaction.Commit
"sql回滚
noremap sr :action Console.Transaction.Rollback
"sql执行
noremap se :action Console.Jdbc.Execute
"打开数据库日志窗口,前提安装了MyBatis Log Plugin插件
noremap mw :action ActivateMyBatisLogToolWindow
""""""""""""""""""""""""""""""""""""""运行篇""""""""""""""""""""""""""""""""""""""
"设置运行配置
nnoremap rc :action RunConfiguration
"运行上次运行的类
noremap rr :action Run
"运行当前(now)类
noremap rn :action RunClass
"debug上次运行的类
noremap dd :action Debug
"debug当前(now)类
noremap dn :action DebugClass
"统计单元测试覆盖率运行上个类
noremap cc :action Coverage
"统计单元测试覆盖率运行当前(now)类
noremap cn :action RunCoverage
"项目停止运行
noremap sp :action Stop
""""""""""""""""""""""""""""""""""""""Debug篇""""""""""""""""""""""""""""""""""""""
"开启或关闭当前行断点
noremap bp :action ToggleLineBreakpoint
"debug时快速计算表达式
noremap qe :action QuickEvaluateExpression
"debug计算器
noremap ee :action EvaluateExpression
"debug强制返回
noremap fr :action Debugger.ForceEarlyReturn
"添加新的debug观察
noremap daw :action Debugger.AddToWatch
"debug强制运行到光标处
noremap fc :action ForceRunToCursor
"安装了JRebel且在JRebel debug下才生效,热更新
noremap hs :action Hotswap
"安装了JRebel的debug运行
noremap DD :action JRebel Debug
"去除所有断点在当前文件中
noremap rab :action Debugger.RemoveAllBreakpointsInFile
"去除所有断点
noremap raB :action Debugger.RemoveAllBreakpoints
"弹出帧
noremap df :action Debugger.PopFrame
"显示当前断点位置
noremap pp :action ShowExecutionPoint
"流追踪技术
noremap ds :action StreamTracerAction
"哑断点技术
noremap mb :action XDebugger.MuteBreakpoints
""""""""""""""""""""""""""""""""""""""窗口篇""""""""""""""""""""""""""""""""""""""
"激活maven窗口
noremap AM :action ActivateMavenToolWindow
"激活database窗口
noremap AD :action ActivateDatabaseToolWindow
"激活todo的窗口
noremap AT :action ActivateTODOToolWindow
"激活Favorites的窗口
noremap AF :action ActivateFavoritesToolWindow
"激活project的窗口
noremap AP :action ActivateProjectToolWindow
"激活git的窗口
noremap AG :action ActivateVersionControlToolWindow
"激活git的窗口
noremap AS :action ActivateServicesToolWindow
"激活Breakpoints的窗口.
noremap AB :action ViewBreakpoints
"激活Rest的窗口(需要安装插件)
noremap AR :action ActivateRestServicesToolWindow
"激活debug的运行窗口
nnoremap wd :action ActivateDebugToolWindow
"激活run的运行窗口
nnoremap wr :action ActivateRunToolWindow
"隐藏窗口(windows hide)
nnoremap wh :action HideActiveWindow
"窗口最大化windows max
nnoremap mm :action MaximizeToolWindow
"隐藏所有窗口
noremap ha :action HideAllWindows
noremap :action HideAllWindows
"激活窗口,选中当前位置
noremap si :action SelectInProjectView
"条件断点编辑
noremap eb :action EditBreakpoint
""""""""""""""""""""""""""""""""""""""信息篇""""""""""""""""""""""""""""""""""""""
"弹出警告信息
noremap ed :action ShowErrorDescription
"弹出类型信息
noremap ti :action ExpressionTypeInfo
"弹出参数信息
noremap pi :action ParameterInfo
"快速显示当前方法信息
noremap jd :action QuickJavaDoc
"弹出文件结构信息
noremap fs :action FileStructurePopup
"显示maven的依赖层级信息
noremap sd :action ShowUmlDiagram
"弹出方法调用层级信息
noremap ch :action CallHierarchy
"查找引用了当前方法的文件信息
nnoremap fu :action FindUsages
"查找方法内使用该变量的引用信息
nnoremap su :action ShowUsages
"弹出方法结构信息
noremap mh :action MethodHierarchy
"弹出设置信息
noremap ss :action ShowSettings
"弹出项目结构信息
noremap ps :action ShowProjectStructureSettings
""""""""""""""""""""""""""""""""""""""项目篇""""""""""""""""""""""""""""""""""""""
"关闭项目
noremap cP :action CloseProject
noremap CP :action CloseProject
"打开项目
noremap oP :action OpenFile
noremap OP :action OpenFile
"新建项目
noremap nP :action NewProject
noremap NP :action NewProject
""""""""""""""""""""""""""""""""""""""实用工具篇""""""""""""""""""""""""""""""""
"代码环绕
noremap sw :action SurroundWith
"整理代码
noremap = :action ReformatCode
"弹出菜单
noremap sm :action ShowPopupMenu
"保存模板
noremap st :action SaveAsTemplate
"复制当前文件的绝对路径
noremap cap :action CopyAbsolutePath
"复制当前文件名
noremap ccp :action CopyContentRootPath
"优化导入
noremap oi :action OptimizeImports
"改变视图
nnoremap cv :action ChangeView
"关闭到只剩当前tab栏
noremap co :action CloseAllEditorsButActive
"g4文件生成代码(需要安装anltr4插件)
noremap ag :action antlr.Generate:action antlr.Generate
"显示字节码
noremap bc :action ByteCodeViewer
"快速翻译(需要安装翻译插件)
noremap qq :action $TranslateTextComponent
"替换翻译(需要安装翻译插件)
noremap tr :action $TranslateAndReplaceAction
noremap gfu :action GenerateFullRestUrl
"添加到收藏文件
noremap atf :action AddToFavorites
"复制文件元素
noremap cE :action CopyElement
"新建文件元素
noremap nE :action NewElement
"删除当前文件元素
noremap dE :action SafeDelete
nnoremap cp :action CheckinProject
"idea智能提示
nnoremap :action ShowIntentionActions
"跳转下个报错处(这个与idea智能提示配起来,炒鸡爽)
nnoremap :action GotoNextError
"新建类,比nE快
noremap nc :action NewClass
"打开项目设置
noremap ps :action ShowProjectStructureSettings
"露出文件夹
noremap ri :action RevealIn
"代码生成
noremap ga :action Generate
"删除未修改的tab
noremap cu :action CloseAllUnmodifiedEditors