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

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Securelist
K
Kaspersky official blog
Scott Helme
Scott Helme
C
CXSECURITY Database RSS Feed - CXSecurity.com
GbyAI
GbyAI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - Franky
Security Latest
Security Latest
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Y
Y Combinator Blog
T
Threat Research - Cisco Blogs
L
LINUX DO - 热门话题
C
Cyber Attacks, Cyber Crime and Cyber Security
Project Zero
Project Zero
Cisco Talos Blog
Cisco Talos Blog
月光博客
月光博客
I
Intezer
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
人人都是产品经理
人人都是产品经理
L
Lohrmann on Cybersecurity
Recorded Future
Recorded Future
Latest news
Latest news
V2EX - 技术
V2EX - 技术
T
The Exploit Database - CXSecurity.com
H
Heimdal Security Blog
F
Fortinet All Blogs
Cloudbric
Cloudbric
IT之家
IT之家
博客园 - 叶小钗
Microsoft Security Blog
Microsoft Security Blog
P
Proofpoint News Feed
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
PCI Perspectives
PCI Perspectives
AWS News Blog
AWS News Blog
H
Help Net Security
S
Security @ Cisco Blogs
酷 壳 – CoolShell
酷 壳 – CoolShell
Recent Announcements
Recent Announcements
Hacker News - Newest:
Hacker News - Newest: "LLM"
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
F
Full Disclosure
S
Schneier on Security
S
Security Affairs
T
Tenable Blog

博客园 - .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}替换为系统登录的用户名