2018-03-18 16:16:43 +08:00
|
|
|
---
|
|
|
|
title: "SpaceVim tools layer"
|
|
|
|
description: "This layer provides some tools for vim"
|
|
|
|
---
|
|
|
|
|
2018-06-23 14:37:41 +08:00
|
|
|
# [Available Layers](../) >> tools
|
2018-03-18 16:16:43 +08:00
|
|
|
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
|
|
|
|
- [Description](#description)
|
|
|
|
- [Install](#install)
|
2022-05-28 12:59:27 +08:00
|
|
|
- [Tools](#tools)
|
2018-03-18 16:16:43 +08:00
|
|
|
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
|
|
|
|
## Description
|
|
|
|
|
2022-05-28 12:59:27 +08:00
|
|
|
This layer provides some extra vim tools for SpaceVim.
|
|
|
|
All tools can be called via command or key binding.
|
2018-03-18 16:16:43 +08:00
|
|
|
|
|
|
|
## Install
|
|
|
|
|
2021-06-21 20:39:29 +08:00
|
|
|
To use this configuration layer, update your custom configuration file with:
|
2018-03-18 16:16:43 +08:00
|
|
|
|
2018-06-23 14:37:41 +08:00
|
|
|
```toml
|
|
|
|
[[layers]]
|
|
|
|
name = "tools"
|
|
|
|
```
|
2018-03-18 16:16:43 +08:00
|
|
|
|
2022-05-28 12:59:27 +08:00
|
|
|
## Tools
|
|
|
|
|
|
|
|
- `:Scriptnames`: same as `:scriptnames`, but show results in quickfix list.
|
|
|
|
- `:SourceCounter`: source counter for vim
|
|
|
|
- `:Calendar`: open vim calendar
|
2022-10-27 15:44:42 +08:00
|
|
|
- `:UnstackFromText`: Call unstack with text as input.
|
2022-05-28 12:59:27 +08:00
|
|
|
|
|
|
|
This layer also includes `vim-bookmarks`, the following key binding can be used:
|
2018-03-18 16:16:43 +08:00
|
|
|
|
2022-05-28 12:59:27 +08:00
|
|
|
| key binding | description |
|
|
|
|
| ----------- | ------------------------- |
|
|
|
|
| `m m` | toggle bookmark |
|
|
|
|
| `m c` | clear bookmarks |
|
|
|
|
| `m i` | add bookmark annote |
|
|
|
|
| `m a` | show all bookmarks |
|
|
|
|
| `m n` | jump to next bookmark |
|
|
|
|
| `m p` | jump to previous bookmark |
|