1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:30:03 +08:00
SpaceVim/docs/cn/layers/sudo.md

36 lines
797 B
Markdown
Raw Normal View History

2018-09-12 20:14:20 +08:00
---
title: "SpaceVim sudo 模块"
description: "这一模块为 SpaceVim 提供了以管理员身份读写文件的功能。"
2019-10-04 14:13:51 +08:00
lang: zh
2018-09-12 20:14:20 +08:00
---
# [可用模块](../) >> sudo
<!-- vim-markdown-toc GFM -->
- [模块简介](#模块简介)
- [启用模块](#启用模块)
- [快捷键](#快捷键)
<!-- vim-markdown-toc -->
## 模块简介
sudo 提供了在 SpaceVim 中以管理员身份读写文件的功能。
## 启用模块
可通过在配置文件内加入如下配置来启用该模块:
```toml
[[layers]]
name = "sudo"
```
## 快捷键
2019-02-03 20:51:01 +08:00
| 快捷键 | 功能描述 |
2018-09-12 20:14:20 +08:00
| --------- | ------------------------------------------- |
| `SPC f E` | open a file with elevated privileges (TODO) |
| `SPC f W` | save a file with elevated privileges |