惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Full Disclosure
V
Vulnerabilities – Threatpost
Attack and Defense Labs
Attack and Defense Labs
N
News and Events Feed by Topic
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
B
Blog
TaoSecurity Blog
TaoSecurity Blog
The Last Watchdog
The Last Watchdog
H
Hacker News: Front Page
Hacker News - Newest:
Hacker News - Newest: "LLM"
博客园_首页
D
Docker
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Y
Y Combinator Blog
W
WeLiveSecurity
N
News and Events Feed by Topic
F
Fortinet All Blogs
PCI Perspectives
PCI Perspectives
WordPress大学
WordPress大学
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Recent Announcements
Recent Announcements
Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
Hacker News: Ask HN
Hacker News: Ask HN
爱范儿
爱范儿
腾讯CDC
Last Week in AI
Last Week in AI
月光博客
月光博客
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
Help Net Security
Help Net Security
V
V2EX
C
Cyber Attacks, Cyber Crime and Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
H
Heimdal Security Blog
L
LINUX DO - 最新话题
GbyAI
GbyAI
The Hacker News
The Hacker News
罗磊的独立博客
S
SegmentFault 最新的问题
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 【当耐特】
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
V2EX - 技术
V2EX - 技术
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
O
OpenAI News
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

博客园 - .net's

SSH 服务器与客户端配置最佳实践 在Kubernetes中探索Pod多容器模式 特性:定义共享行为 译:Zed 解码:为什么不直接嵌入 Neovim? 9大关于生产力的错误认知 如何用费曼技巧快速学习任何东西 如何高效使用 Todoist — 完整指南 译:Building a Text Editor in the Times of AI 在AI时代构建文本编辑器 Combine and Conquer in Vim aa babel new Parse import.meta.url Installing Yarn on WSL wsl 2安装 vim备忘录 -- 可视模式 vim 备忘录 -- 插入模式 Windows Terminal PowerShell智能提示 安装配置Oh My Posh Search and replace
windows 10安装和配置NeoVim 0.8.2
.net's · 2023-01-28 · via 博客园 - .net's

安装neovim

下载最新版本:https://github.com/neovim/neovim/releases/tag/stable
下载成功后,无须安装,解压安装包,放入合适的目录中,比如 C:\nvim-win64中。
NeoVim有两个启动程序,分别是nvim-qt.exe和nvim.exe,前者是基于Gui的客户端,后者则基于终端Terminal,解压之后,最好将bin目录配置到系统的环境变量:C:\nvim-win64\nvim-win64\bin ,如此,我们就可以在系统的任意位置启动NeoVim。

运行健康检查:checkhealth

根据警告和提示进行相应配置

设置init.vim文件

"C:\Users{username}\AppData\Local\nvim\init.vim"

安装插件管理工具vim-plug

安装要求:https://github.com/junegunn/vim-plug/wiki/requirements

Windows (PowerShell)

iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
    ni "$(@($env:XDG_DATA_HOME, $env:LOCALAPPDATA)[$null -eq $env:XDG_DATA_HOME])/nvim-data/site/autoload/plug.vim" -Force

安装python3
直接在命令行上输入python3,如果没有安装,会打开微软商店进行安装。

配置init.vim文件

" Plugins will be downloaded under the specified directory.
call plug#begin('C:\Users\{username}\AppData\Local\nvim-data\plugged')

" Declare the list of plugins.


" List ends here. Plugins become visible to Vim after this call.
call plug#end()



# 配置python3路径
let g:python3_host_prog = 'C:\Users\{username}\AppData\Local\Microsoft\WindowsApps\python3.exe'

第一个NeoVim插件

第一个NeoVim插件我们从主题入手,
修改init.vim配置:

" Plugins will be downloaded under the specified directory.
call plug#begin('C:\Users\{username}\AppData\Local\nvim-data\plugged')

" Declare the list of plugins.
Plug 'navarasu/onedark.nvim'

" List ends here. Plugins become visible to Vim after this call.
call plug#end()



# 配置python3路径
let g:python3_host_prog = 'C:\Users\{username}\AppData\Local\Microsoft\WindowsApps\python3.exe'

运行安装插件命令

在neovim的命令行模式下运行:
:PlugInstall

如果报:PlugInstall threw "not an editor command" on Windows,那就是没有设置对init.vim的路径,可以运行:checkhealth根据提示进行配置。

参考

https://www.cnblogs.com/v3ucn/p/17070289.html
https://github.com/junegunn/vim-plug
https://github.com/junegunn/vim-plug/wiki/tutorial
https://github.com/navarasu/onedark.nvim
https://github.com/neovim/neovim

注意事项

请将路径中的{username}替换为系统登录的用户名