mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-26 15:30:04 +08:00
36 lines
792 B
Markdown
36 lines
792 B
Markdown
|
---
|
||
|
title: "SpaceVim sudo 模块"
|
||
|
description: "sudo 提供了在 SpaceVim 中以管理员身份读写文件的功能。"
|
||
|
lang: cn
|
||
|
---
|
||
|
|
||
|
# [可用模块](../) >> sudo
|
||
|
|
||
|
<!-- vim-markdown-toc GFM -->
|
||
|
|
||
|
- [模块简介](#模块简介)
|
||
|
- [启用模块](#启用模块)
|
||
|
- [快捷键](#快捷键)
|
||
|
|
||
|
<!-- vim-markdown-toc -->
|
||
|
|
||
|
## 模块简介
|
||
|
|
||
|
sudo 提供了在 SpaceVim 中以管理员身份读写文件的功能。
|
||
|
|
||
|
## 启用模块
|
||
|
|
||
|
可通过在配置文件内加入如下配置来启用该模块:
|
||
|
|
||
|
```toml
|
||
|
[[layers]]
|
||
|
name = "sudo"
|
||
|
```
|
||
|
|
||
|
## 快捷键
|
||
|
|
||
|
| 按键 | 功能描述 |
|
||
|
| --------- | ------------------------------------------- |
|
||
|
| `SPC f E` | open a file with elevated privileges (TODO) |
|
||
|
| `SPC f W` | save a file with elevated privileges |
|