ideavimrc 示例
2024-09-08 19:24:25
我自己的idea vim配置,用熟悉了以后还真的挺方便的
比较常用的有
ManageRecentProjects,快速切换多个project,经常会遇到同时打开多个project,来回切换方便多了
HideAllWindows,隐藏所有窗口,即放大当前窗口,快速专注,更进一步,进入专注模式ToggleDistractionFreeMode,连菜单栏都隐藏
其他还有GotoFile, FindInPath, GotoImplementation, GotoDeclaration, RenameElement, SelectInProjectView 都是很常用的功能
""" Map leader to space ---------------------
let mapleader=" "
""" set english in normal
let keep_input_source_in_normal="com.apple.keylayout.ABC"
set keep-english-in-normal
""" Plugins --------------------------------
set easymotion
set NERDTree
""" Plugin settings -------------------------
""" Common settings -------------------------
set clipboard+=unnamed
""" Idea specific settings ------------------
set ideajoin
set ideastatusicon=gray
set idearefactormode=keep
""" Mappings --------------------------------
xnoremap p pgvy
""" Action is not suitable for noremap, only map
map <leader>i <Action>(GotoImplementation)
map <leader>h <Action>(FindInPath)
map <leader>d <Action>(GotoDeclaration)
map <leader>g <Action>(Generate)
map <leader>r <Action>(RenameElement)
map <leader>a <Action>(ShowIntentionActions)
map <leader>o <Action>(FileStructurePopup)
map <leader>s <Action>(Switcher)
map <leader>c <Action>(GotoFile)
map <leader>m <Action>(HideAllWindows)
map <leader>M <Action>(ToggleDistractionFreeMode)
map <leader>u <Action>(ShowUmlDiagram)
map <leader>e <Action>(GotoNextError)
map <leader>p <Action>(SelectInProjectView)
map <leader>t <Action>(ActivateTerminalToolWindow)
map <leader>w <Action>(CopyReference)
map <leader>j <Action>(CloseAllEditorsButActive)
map <leader>l <Action>(SplitVertically)
""" map <leader>j <Action>(CloseAllEditors)
map <leader>n <Action>(ManageRecentProjects)
map <leader>b <Action>(EditorCompleteStatement)
map <leader>v <Action>(ExtractMethod)
最新文章
- [BZOJ3729]Gty的游戏
- Sprint1(第七天11.20)
- MySQL – 导出数据成csv
- hdu 1021
- MySQL数据库优化技术概述
- 在Eclipse中查看JDK类库的源代码
- SSH2中实例化不了Action的一个原因
- 访问nginx-php页面的时候 报access denied.
- Loadrunner--自动关联和手动关联
- php异步执行其他程序
- Nginx使用教程(一):下载并编译安装Nginx
- MD5+salt 工具类
- How to Pronounce the Days of the Week
- mybatis 之 parameterType=";HashMap";参数包含list
- 1044 Shopping in Mars (25 分)
- 深入理解Hystrix之文档翻译
- 【Linux】监控系统的状态
- python模块学习之warnings
- JT809 加密解密算法
- tabs(标签页的现成页面)原生js写法