Skip to content

Instantly share code, notes, and snippets.

View h2m730131's full-sized avatar

Kevin Huang h2m730131

View GitHub Profile
@h2m730131
h2m730131 / karabiner.json
Last active September 8, 2024 16:27
Remap the Keyboard in macOS: Karabiner-Elements
{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "⌃-J to switch between english and 倉頡",
"manipulators": [
{
"conditions": [
@h2m730131
h2m730131 / .ideavimrc
Last active July 10, 2023 02:54
RIder + IdeaVim
"" Source your .vimrc
"source ~/.vimrc
"" -- Suggested options --
" Show a few lines of context around the cursor. Note that this makes the
" text scroll if you mouse-click near the start or end of the window.
" set scrolloff=5
" Do incremental searching.
" set incsearch
@h2m730131
h2m730131 / omnisharp.json
Last active December 7, 2022 03:43
Visual Studio Code + OmniSharp
// Windows: %USERPROFILE%\.omnisharp\omnisharp.json
{
"roslynExtensionsOptions": {
"inlayHintsOptions": {
"enableForParameters": true,
"forLiteralParameters": true,
"forIndexerParameters": true,
"forObjectCreationParameters": true,
"forOtherParameters": true,
"suppressForParametersThatDifferOnlyBySuffix": false,
@h2m730131
h2m730131 / keybindings.json
Last active March 27, 2025 06:40
Visual Studio Code + VSCodeVim
// Place your key bindings in this file to override the defaults
[
{
"key": "enter",
"command": "acceptSelectedSuggestion", // to insert
"when": "suggestWidgetVisible && textInputFocus"
},
{
"key": "tab",
"command": "acceptAlternativeSelectedSuggestion", // to replace
@h2m730131
h2m730131 / .keyboard_setting.ahk
Last active September 19, 2024 06:40
Remap the Keyboard in Windows: AutoHotkey
; GroupAdd, Vim_Only, ahk_exe devenv.exe ; Visual Studio 2019
; GroupAdd, Vim_Only, ahk_exe Code.exe ; Visual Studio Code
; GroupAdd, Vim_Only, ahk_exe msedge.exe ; Edge
; Left Alt + h / j / k / l 為方向鍵
; #IfWinActive ahk_group Vim_Only
; <!h::Send {Left}
; <!j::Send {Down}
; <!k::Send {Up}
; <!l::Send {Right}
@h2m730131
h2m730131 / vimrc
Last active April 2, 2024 08:05
Vim
"Vim Plugin Manager
call plug#begin()
call plug#end()
" For Windows Terminal you can use something like this:
" Note: This should be set after `set termguicolors` or `set t_Co=256`.
" if &term =~ 'xterm' || &term == 'win32'
" " Use DECSCUSR escape sequences
" let &t_SI = "\e[5 q" " blink bar
@h2m730131
h2m730131 / .vsvimrc
Last active March 3, 2025 16:02
Visual Studio 2022 + VsVim + ReSharper + PeasyMotion + im-select
" [ReSharper Documentation](https://www.jetbrains.com/help/resharper/)
" 避免 key mapping 覆蓋 `"` 與 `/` 暫存器, 分別採用 `z` 與 `s` 暫存器替代
" Not support InsertLeave autocmd 自動切換回英文輸入法
"autocmd InsertLeave * !%USERPROFILE%\\.vscode\\extensions\\im-select.exe 1033
inoremap <Esc> <Esc>:!%USERPROFILE%\\.vscode\\extensions\\im-select.exe 1033<CR>