set tabstop=4
set clipboard=unnamedplus
set encoding=utf-8
set fileencodings=iso-2022-jp,euc-jp,sjis,utf-8
set fileformats=unix,dos,mac
inoremap <ESC> <ESC>:set iminsert=0<CR> "インサートモードでは、ESCでIMEをOFFにする
:e $MYVIMRC
; VSCode がアクティブなときのみ動作
#IfWinActive ahk_exe Code.exe
~Esc::
; Escキーを送信
Send {Esc}
; 変換キーを送信
Send {vk1Csc079} ; 変換キーでIMEをオフにする
return
#IfWinActivenb
; AndroidStudio がアクティブなときのみ動作
#IfWinActive ahk_exe studio64.exe
~Esc::
; Escキーを送信
Send {Esc}
; 変換キーを送信
Send {vk1Csc079} ; 変換キーでIMEをオフにする
return
#IfWinActivenb
; PowerShell がアクティブなときのみ動作
#IfWinActive ahk_exe WindowsTerminal.exe
~Esc::
; Escキーを送信
Send {Esc}
; 変換キーを送信
Send {vk1Csc079} ; 変換キーでIMEをオフにする
return
#IfWinActivenb
#InstallKeybdHook ;キーコードを調べる
ショートカット | コマンド |
---|---|
k, j, l, h | 上下左右移動 |
^, $ | 行頭、行末移動 |
a, A | カーソル右追加挿入モード、行末追加挿入モード |
i, I | カーソル左挿入モード、行頭挿入モード |
o, O | カーソル上行追加挿入モード、カーソル下行追加挿入モード |
v, V | 文字単位の選択モード、行単位の選択モード |
ESC | ノーマルモードに戻る |
s | 1文字変更 |
cw | 1ワード変更 |
cc | 1行変更 |
r, R | 1文字置換(esc不要)、上書きモード |
u, U | Undo(取り消し)、1行の操作取り消し |
x, X, yl | 1文字削除、左1文字削除、1文字コピー |
dw, yw | 1ワード削除、1ワードコピー |
dd, yy | 1行削除、1行コピー |
d$, y$ | 行末まで削除、行末までコピー |
d%, y% | 対応する括弧まで全部削除、対応する括弧まで全部コピー |
p | Paste(貼り付け) |
. | 直前に実行したコマンドを実行 |
% | 対応する括弧に移動 |
G, :行番号 | 最終行へ移動、行番号へ移動 |
J | 行連結 |
/検索文字列 | 検索 |
:wq, :q! | 保存して終了、保存せずに終了 |
:%s/置換前/置換後/ | 置換 |
:r ファイル名 | 別ファイル挿入 |
> Test-Path $profile
False
> New-Item -path $profile -type file -force
ディレクトリ: C:\Users\user\Documents\WindowsPowerShell
> cd C:\Users\user\Documents\WindowsPowerShell
> vim .\Microsoft.PowerShell_profile.ps1
set-Alias vi "vim"
> Get-ExecutionPolicy
Restricted
> Set-ExecutionPolicy RemoteSigned
> . $profile
#IfWinActive ahk_exe Code.exe ; Visual Studio Codeがアクティブなときのみ動作
~Esc::
; Escキーを送信
Send {Esc}
; 変換キーを送信
Send {vk1Csc079} ; 変換キーでIMEをオフにする
return
#IfWinActivenb
#InstallKeybdHook ;キーコードを調べる
#IfWinActive ahk_exe studio64.exe
~Esc::
if (A_PriorHotkey = "~Esc" && A_TimeSincePriorHotkey < 400) {
Send {vk1A}
}
return
#IfWinActivenb
{
:
既存の設定
:
"files.associations": {
"*.pln": "plaintext"
},
// グローバルな設定
"editor.fontFamily": "Consolas, 'Courier New', monospace",
// プレーンテキストのみに適用される設定
"[plaintext]": {
"editor.tabSize": 8, // プレーンテキストのタブサイズを8に変更
"editor.detectIndentation": false,
"editor.insertSpaces": false, // タブ文字を挿入
"editor.fontFamily": "'MS ゴシック', monospace" },
"editor.renderWhitespace": "all" // 空白記号の表示
}
"editor.fontFamily": "'MeiryoKe_Console', monospace"
>winget install --scope machine Oracle.JDK.21
PS C:\Users\user> java -version
java version "21.0.8" 2025-07-15 LTS
Java(TM) SE Runtime Environment (build 21.0.8+12-LTS-250)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.8+12-LTS-250, mixed mode, sharing)
PS C:\Users\user> [System.Environment]::SetEnvironmentVariable('GRADLE_PATH', 'D:\gradle-9.0.0',[System.EnvironmentVariableTarget]::Machine)
PS C:\Users\user> $oldpath = [System.Environment]::GetEnvironmentVariable('Path', 'Machine'); $oldpath += ';D:\gradle-9.0.0\bin'; [System.Environment]::SetEnvironmentVariable('Path', $oldpath, 'Machine')
PS C:\Users\user> gradle
Welcome to Gradle 9.0.0!
Here are the highlights of this release:
- Configuration Cache is the recommended execution mode
- Gradle requires JVM 17 or higher to run
- Build scripts use Kotlin 2.2 and Groovy 4.0
- Improved Kotlin DSL script compilation avoidance
For more details see https://docs.gradle.org/9.0.0/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :help
Welcome to Gradle 9.0.0.
Directory 'C:\Users\user' does not contain a Gradle build.
To create a new build in this directory, run gradle init
For more detail on the 'init' task, see https://docs.gradle.org/9.0.0/userguide/build_init_plugin.html
For more detail on creating a Gradle build, see https://docs.gradle.org/9.0.0/userguide/tutorial_using_tasks.html
To see a list of command-line options, run gradle --help
For more detail on using Gradle, see https://docs.gradle.org/9.0.0/userguide/command_line_interface.html
For troubleshooting, visit https://help.gradle.org
BUILD SUCCESSFUL in 15s
1 actionable task: 1 executed
Consider enabling configuration cache to speed up this build: https://docs.gradle.org/9.0.0/userguide/configuration_cache_enabling.html
PS C:\Users\user> gradle -version
------------------------------------------------------------
Gradle 9.0.0
------------------------------------------------------------
Build time: 2025-07-31 16:35:12 UTC
Revision: 328772c6bae126949610a8beb59cb227ee580241
Kotlin: 2.2.0
Groovy: 4.0.27
Ant: Apache Ant(TM) version 1.10.15 compiled on August 25 2024
Launcher JVM: 21.0.8 (Oracle Corporation 21.0.8+12-LTS-250)
Daemon JVM: C:\Program Files\Java\jdk-21 (no JDK specified, using current Java home)
OS: Windows 11 10.0 amd64
task helloWorld {
doLast {
println "Hello,world!"
}
}
> gradle -q helloworld
Hello,world!
tasks.register('upper') {
doLast {
String someString = 'mY_nAmE'
println "Original: " + someString
println "Upper case: " + someString.toUpperCase()
}
}
> gradle -q upper
Original: mY_nAmE
Upper case: MY_NAME
The VIA protocol version of the connected keyboard is 11. Use "Remap for QMK 0.18" to customize the keyboard.
接続されているキーボードのVIAプロトコルバージョンは11です。キーボードをカスタマイズするには、「Remap for QMK 0.18」を使用してください。
FN+ESC(3秒) キーボードを工場出荷時の設定に戻す
FN+Q 2.4Gモード接続
FN+W ASWDを矢印キーモードに
FN+E/R/T Bluetooth機器1/2/3切替
FN+B バッテリー残量表示
FN+WIN Winキーロック
FN+左CTRL 数値行とF行の切替
FN+TAB バックライト色の切替
FN+\ バックライト効果の切替
FN+↑ バックライト輝度+
FN+↓ バックライト輝度−
FN+← バックライト速度−
FN+→ バックライト速度+
FN+右SHIFT バックライト効果の切替
FN+, 周期的サイドライト速度
FN+. 周期的サイドライト輝度
FN+/ 周期的サイドライトカラー
FN+BACKSPACE バッテリー残量表示
FN+SPACE(3秒) キーボードリセット
FN+ノブ ノブ機能切替(音量⇔画面調整)
FN+Q/W/E Bluetooth機器1/2/3切替(長押しでペアリング)
FN+R 2.4Gモード接続
FN+WIN Winキーロック
FN+; HOME
FN+' END
FN+P PRTSCR
FN+[ SCRLK
FN+] PAUSE
FN+L INS
FN+PGUP バックライトON/OFF
FN+\ バックライト効果の切替
FN+DEL バックライト色の切替
FN+↑ バックライト輝度+
FN+↓ バックライト輝度−
FN+← バックライト速度−
FN+→ バックライト速度+
$ net rpc SHUTDOWN -I xxx.xxx.xxx.xxx -U uname%psswd
Could not connect to server 127.0.0.1
The username or password was not correct.
Connection failed: NT_STATUS_LOGON_FAILURE
$ net rpc SHUTDOWN -I xxx.xxx.xxx.xxx -U uname%psswd
Could not connect to server xxx.xxx.xxx.xxx
Connection failed: NT_STATUS_IO_TIMEOUT
>slmgr -dli