2018-08-03 20:47:46 +08:00
|
|
|
---
|
|
|
|
title: "SpaceVim sudo layer"
|
2021-06-21 20:39:29 +08:00
|
|
|
description: "sudo layer provides the ability to read and write files with elevated privileges in SpaceVim"
|
2018-08-03 20:47:46 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
# [Available Layers](../) >> sudo
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
|
|
|
|
- [Description](#description)
|
|
|
|
- [Install](#install)
|
|
|
|
- [Key bindings](#key-bindings)
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
|
|
|
|
## Description
|
|
|
|
|
2021-06-21 20:39:29 +08:00
|
|
|
sudo layer provides the ability to read and write files with elevated privileges.
|
2018-08-03 20:47:46 +08:00
|
|
|
|
|
|
|
## Install
|
|
|
|
|
2021-06-21 20:39:29 +08:00
|
|
|
To use this configuration layer, update your custom configuration file with:
|
2018-08-03 20:47:46 +08:00
|
|
|
|
|
|
|
```toml
|
|
|
|
[[layers]]
|
|
|
|
name = "sudo"
|
|
|
|
```
|
|
|
|
|
|
|
|
## Key bindings
|
|
|
|
|
2021-06-21 20:39:29 +08:00
|
|
|
| Key Binding | Description |
|
|
|
|
| ----------- | --------------------------------------------|
|
2018-08-03 20:47:46 +08:00
|
|
|
| `SPC f E` | open a file with elevated privileges (TODO) |
|
2021-06-21 20:39:29 +08:00
|
|
|
| `SPC f W` | save a file with elevated privileges |
|