sublime 中使用vim模式
来源:互联网 发布:企业培训网络课程设计 编辑:程序博客网 时间:2024/05/02 00:52
sublime 中使用vim模式
在sublime中编写代码时使用vim快捷键,编写非常方便,但是使用vim模式时,有部分快捷键会出现冲突,例如,常用的 ctrl + [ 快捷键,在vim中表示 Esc (退出插入模式), 而在sublime 中表示 incident, 容易给使用带来麻烦。 但是只要做稍微的修改,就能解决这种麻烦。
1. 修改seting
sublime ->preference->seting 添加修改{ "caret_extra_bottom": 1, "caret_extra_top": 1, "caret_extra_width": 2, "font_size": 11, "ignored_packages": [ ], "vintage_ctrl_keys": true, "vintage_start_in_command_mode": true}
其中, “vintage_ctrl_keys”: true 表示增加部分vim快捷键,”vintage_start_in_command_mode”: true 表示打开时直接进入vim 模式,tab采用4个空格。
2.修改退出插入模式快捷键
sublime->preference->key binding 添加修改
[{ "keys": ["ctrl+]"], "command": "unbound" }, { "keys": ["ctrl+["], "command": "unbound" }, { "keys": ["ctrl+["], "command": "exit_insert_mode", "context": [ { "key": "setting.command_mode", "operand": false }, { "key": "setting.is_widget", "operand": false } ]},{ "keys": ["ctrl+["], "command": "hide_auto_complete", "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": true } ]},{ "keys": ["ctrl+["], "command": "vi_cancel_current_action", "context": [ { "key": "setting.command_mode" }, { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": false }, { "key": "vi_has_input_state" } ]},{ "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": true} },{ "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": false}, "context": [ { "key": "setting.tab_completion", "operator": "equal", "operand": true }, { "key": "preceding_text", "operator": "not_regex_match", "operand": ".*\\b[0-9]+$", "match_all": true }, ]},{ "keys": ["tab"], "command": "replace_completion_with_next_completion", "context": [ { "key": "last_command", "operator": "equal", "operand": "insert_best_completion" }, { "key": "setting.tab_completion", "operator": "equal", "operand": true } ]},{ "keys": ["tab"], "command": "reindent", "context": [ { "key": "setting.auto_indent", "operator": "equal", "operand": true }, { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, { "key": "preceding_text", "operator": "regex_match", "operand": "^$", "match_all": true }, { "key": "following_text", "operator": "regex_match", "operand": "^$", "match_all": true } ]},{ "keys": ["tab"], "command": "indent", "context": [ { "key": "text", "operator": "regex_contains", "operand": "\n" } ]},{ "keys": ["enter"], "command": "next_field", "context": [ { "key": "has_next_field", "operator": "equal", "operand": true } ]},{ "keys": ["tab"], "command": "commit_completion", "context": [ { "key": "auto_complete_visible" }, { "key": "setting.auto_complete_commit_on_tab" } ]},]
其中才用 ctrl + [ 代替 esc, 采用 enter 跳跃到 nextfield
插件
通用
FileDiffs
GBK Support
Gist
Git
GitGutter
Alignment 等于符号自动对齐
AutoFileName 自动插入文件名
BracketHighlighter 括号匹配高亮
ColorPicker 颜色
ConvertToUTF8
Clipboard Manager 剪切板
DocBlockr
Package Control
PackageResourceView
SideBarEnhancements
SublimeLinter
Terminal
Trimmer前端开发
Can I Use Css 语法检测
CSScomb css排序
Emmet
JsFormatC++
参考http://blog.csdn.net/dc_726/article/details/45749805/
SublimeCodeIntel (比较喜欢:C++ 再加一个sublimeclang)
All autocomplete
cscope
ctag
代码检测 sublime linter
使用说明python
anaconda 相关配置
关闭错误提示markdown
Markdown Preview
MarkdownEditing
- sublime 中使用vim模式
- sublime开启vim模式
- sublime text vim模式
- Sublime 开启vim模式
- sublime开启vim模式
- Sublime 下配置vim模式
- Sublime 下配置vim模式
- Sublime Text vim模式快捷键
- sublime text 2 开启 vim 模式
- 我的Sublime vim模式配置文件
- 在sublime 中使用 自定义配置按键绑定模拟vim光标移动
- vim操作-在查找模式中使用寄存器内容
- 用vim 操作模式 在sublime 的应用
- Sublime Text 2 VIM模式:Vintage插件的官方说明
- sublime 配置 vim模式 并修改 Esc快捷键
- Sublime Text 3 插件安装及Vim 模式设置
- Sublime Text编辑器开启或关闭Vim模式
- putty中使用vim,选中时激活vim的可视模式(visual)的问题解决
- Android源码编译
- 责任链模式
- ubuntu平台下MySQL的环境搭建
- Java虚拟机垃圾回收(二) 垃圾回收算法:标记-清除算法 复制算法 标记-整理算法 分代收集算法 火车算法
- 单个服务器和客户端的通信
- sublime 中使用vim模式
- 基于Docker快速搭建Hadoop集群
- Ajax技术---核心XMLHttpRequest对象
- 关于Windows Mobile开发的一些基础课程
- actionbar实现tab的时添加背景图片
- 高性能异步web框架Sanic文档【六】
- word----遇到问题-----word中插入的图片无法左对齐----格式按钮为灰色
- HTML标题、段落、文本格式化、链接
- DOM笔记