--- title: "SpaceVim edit layer" description: "Improve code edit expr in SpaceVim, provide more text opjects." --- # [Available Layers](../) >> edit - [Description](#description) - [Features](#features) - [Options](#options) - [Key bindings](#key-bindings) ## Description This layer provides many edit key bindings for SpaceVim, and also provides more text objects. ## Features - change surround symbol via vim-surround - repeat latest action via vim-repeat - multiple cursor - align - set justification for paragraph - highlight whitespaces at the end of a line - load ditorconfig config, need `+python` or `+python3` ## Options - `textobj`: specified a list of text opjects to be enabled, the avaliable list is :`indent`, `line`, `entire` ## Key bindings | Key bindings | Descraptions | | -------------------- | ------------------------------- | | `SPC x a {delimiter}` | align content based on delimiter | **default delimiters** - `=`: align `===`, `==`, `!=`, `>=` etc. - `&`: align `&` - `¦`: align `¦` - `;`: align `;` - `:`: align `:` - `,`: align `,` - `.`: align `.` - `[`: align `[` - `(`: align `(` - `{`: align `{` - `]`: align `]` - `}`: align `}` - `)`: align `)` | Key bindings | Descraptions | | ------------ | ------------------------------- | | `SPC x j c` | set the justification to center | | `SPC x j l` | set the justification to left | | `SPC x j r` | set the justification to right |