安装windows
- 将windows镜像iso工具刻录到u盘里。
- 开机选择u盘启动&安装
- 激活。Win10专业版用户请在命令提示符窗口中依次输入:
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX slmgr /skms kms.03k.org slmgr /ato
- 系统安装完成后,可以到https://www.microsoft.com/zh-cn/software-download/windows10下载更新工具windows10 upgrade…exe, 启动程序后会将当前win10更新到更新版本,这样就可以使用最新特性,比如winget等命令
esc与capslock替换
- 将下列代码保存为.reg文件,可以对esc和capslock交换
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,01,00,01,00,3a,00,00,00,00,00
- 下列代码则可以将交换的按键重设为默认
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=-
安装程序
使用winget install your_app命令可以安装程序,有些程序同名,可以使用–id来指定app
winget install --id vim.vim
#--id Microsoft.VisualStudioCode
winget uninstall vim.vim
vim 设置
winget install --id vim.vim
vi c:/user/you_name/_vimrc
增加以下配置项
" 设置文件编码
set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
set fileencoding=utf-8
" 解决菜单乱码
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
" 解决consle输出乱码
language messages zh_CN.utf-8
" … existing code …
“”"
vscode
winget install --id Microsoft.VisualStudioCode