Comments (3)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#NoTrayIcon
SetCapsLockState, AlwaysOff
/*
| Shortcut | Output |
| -------------------------------- | -------------------------------- |
| CAPSLOCK + { w, a, s, d } | { Up, Left, Down, Right } |
| CAPSLOCK + { q, e } | { Home, End } |
| CAPSLOCK + { r, f } | { PageUp, PageDown } |
*/
*/
CapsLock & w::
Send {Up}
return
CapsLock & s::
Send {Down}
return
CapsLock & a::
Send {Left}
return
CapsLock & d::
Send {Right}
return
CapsLock & q::
Send {Home}
return
CapsLock & e::
Send {End}
return
CapsLock & r:: send, {PgUp}
CapsLock & f:: send, {PgDn}
return
*/
/*
| Shortcut | Output |
| -------------------------------- | -------------------------------- |
| CAPSLOCK + { h, j, k, l } | { Left, Up, Down, Right } |
| CAPSLOCK + { u, o } | { Home, End } |
| CAPSLOCK + { y, h } | { PageUp, PageDown } |
*/
CapsLock & h::
Send {Left}
return
CapsLock & j::
Send {Down}
return
CapsLock & k::
Send {Up}
return
CapsLock & l::
Send {Right}
return
/*
CapsLock & u::
Send {Home}
return
CapsLock & o::
Send {End}
return
CapsLock & y:: send, {PgUp}
CapsLock & h:: send, {PgDn}
*/
return
from i3wm_config.
{
"workbench.list.automaticKeyboardNavigation": false,
"editor.lineNumbers": "relative",
// 绑定vim前导键
"vim.leader": "",
// 启用easymotion插件
"vim.easymotion": true,
// 启用系统粘贴板作为vim寄存器
"vim.useSystemClipboard": true,
// 由vim接管ctrl+any的按键,而不是vscode
"vim.useCtrlKeys": true,
// 突出显示与当前搜索匹配的所有文本
"vim.hlsearch": true,
// 点击鼠标进入选取模式
"vim.mouseSelectionGoesIntoVisualMode": true,
// 普通模式下的非递归按键绑定
// 下面定义的按键将交由vscode进行处理,而不是vscode-vim插件
"vim.handleKeys": {
"": false,
"": false,
// "": false,
"": false,
"": false,
"": false,
},
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"",
"f",
],
"commands": [
{
"command": "actions.findWithSelection",
"args": [
""
]
},
]
},
{
"before": [
";",
"w",
],
"commands": [
"workbench.action.files.save"
]
},
{
"before": [
";",
"d",
],
"commands": [
"workbench.action.closeActiveEditor"
]
},
{
"before": [
"",
],
"commands": [
"workbench.action.focusRightGroup"
]
},
{
"before": [
"H"
],
"after": [
"^"
]
},
{
"before": [
"L"
],
"after": [
"$"
]
},
{
"before": [
"z",
"z",
],
"commands": [
"editor.toggleFold"
]
},
{
"before": [
"R"
],
"commands": [
"workbench.action.nextEditorInGroup"
]
},
{
"before": [
"E",
],
"commands": [
"workbench.action.previousEditorInGroup"
]
},
],
// 插入模式下的非递归按键绑定
"vim.insertModeKeyBindings": [
{
"before": [
"j",
"k"
],
"after": [
""
]
},
],
"vim.visualModeKeyBindings": [
{
"before": [
"",
"f",
],
"commands": [
{
"command": "actions.findWithSelection",
"args": [
""
]
},
]
},
{
"before": [
"",
"F",
],
"commands": [
{
"command": "workbench.action.findInFiles",
"args": [
""
]
},
{
"command": "search.action.focusSearchList",
"args": [
""
]
}
]
},
{
"before": [
"H"
],
"after": [
"^"
]
},
{
"before": [
"L"
],
"after": [
"$"
]
},
{
// GO to defination
"before": [
"g",
"d"
],
"after": [
"editor.action.revealDefinition"
]
},
],
// 命令模式下的非递归按键绑定
"vim.commandLineModeKeyBindingsNonRecursive": [],
// 可视模式下的非递归按键绑定
"vim.operatorPendingModeKeyBindings": [],
"C_Cpp.intelliSenseEngine": "Disabled",
"clangd.path": "c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\llvm-vs-code-extensions.vscode-clangd\install\14.0.3\clangd_14.0.3\bin\clangd.exe",
"latex-workshop.latex.tools": [
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOCFILE%"
]
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOCFILE%"
]
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
]
}
],
"latex-workshop.latex.recipes": [
{
"name": "xe->bib->xe->xe",
"tools": [
"xelatex",
"bibtex",
"xelatex",
"xelatex"
]
},
{
"name": "pdf->bib->pdf->pdf",
"tools": [
"pdflatex",
"bibtex",
"pdflatex",
"pdflatex"
]
}
],
"remote.SSH.remotePlatform": {
"labl": "linux"
},
}
from i3wm_config.
[
{
"key": "ctrl+oem_3",
"command": "-workbench.action.terminal.toggleTerminal",
"when": "terminal.active"
},
{
"key": "ctrl+l",
"command": "-extension.vim_navigateCtrlL",
"when": "editorTextFocus && vim.active && vim.use && !inDebugRepl"
},
{
"key": "ctrl+l",
"command": "-notebook.centerActiveCell",
"when": "notebookEditorFocused"
},
{
"key": "ctrl+h",
"command": "workbench.action.focusPreviousGroup",
"when": "!terminalFocus"
},
{
"key": "ctrl+l",
"command": "workbench.action.focusNextGroup",
"when": "!terminalFocus"
},
{
"key": "ctrl+p",
"command": "workbench.action.quickOpen"
},
// 折叠文件管理器
{ // |←
"key": "ctrl+e",
"when": "!sideBarFocus",
"command": "workbench.files.action.focusFilesExplorer"
},
{ // |→
"key": "ctrl+e",
"when": "sideBarFocus",
"command": "workbench.action.focusActiveEditorGroup"
},
// 折叠panel
{
"key": "ctrl+oem_5",
"command": "workbench.action.togglePanel",
// "when": "panelfocus"
},
// --- 资源管理器中对文件或目录的操作
// 新建文件
{
"key": "a",
"command": "explorer.newFile",
"when": " explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus "
},
// 新建目录
{
"key": "shift+a",
"command": "explorer.newFolder",
"when": " explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus "
},
// 重命名文件或目录
{
"key": "r",
"command": "renameFile",
"when": " explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus "
},
// 删除文件或目录
{
"key": "d",
"command": "deleteFile",
"when": " explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus "
},
// 剪切文件或目录
{
"key": "x",
"command": "filesExplorer.cut",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// 复制相对文件目录
{
"key": "shift+y",
"command": "copyRelativeFilePath",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
}, // 复制文件或目录
{
"key": "y",
"command": "copyFilePath",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
},
// 粘贴文件或目录
{
"key": "p",
"command": "filesExplorer.paste",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
},
{
"key": "ctrl+shift+e",
"command": "-workbench.view.explorer",
"when": "viewContainer.workbench.view.explorer.enabled"
},
{
"key": "f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "ctrl+e",
"command": "-workbench.action.quickOpen"
},
{
"key": "ctrl+s",
"command": "-workbench.action.files.save"
},
{
"key": "ctrl+s",
"command": "-extension.vim_ctrl+s",
"when": "editorTextFocus && vim.active && vim.use && !inDebugRepl"
},
{
"key": "ctrl+f",
"command": "-actions.find",
"when": "editorFocus || editorIsOpen"
},
]
from i3wm_config.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i3wm_config.