https://github.com/arecarn/vim-split-join
https://github.com/arecarn/vim-split-join
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arecarn/vim-split-join
- Owner: arecarn
- License: wtfpl
- Created: 2015-11-17T19:35:50.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-09T21:26:18.000Z (over 9 years ago)
- Last Synced: 2025-02-03T18:56:28.761Z (over 1 year ago)
- Language: VimL
- Size: 11.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
split-join
==========
Usage
-----
| Mode | Key Mapping | Description |
| ------ | ----------- | ------------------------------ |
| normal | S | Split a line |
| normal | CTRL-S | Split a line upwards |
| normal | CTRL-J | Join a to the fron of a line |
* `:[range]Split[!][/{pattern}/[flags]]`
* For each line in [range] replace spaces or matches to {pattern} with
newlines and the leading spaces of the first item. When [!] is added the
leading spaces of the first item are not inserted.
* `:[range]Join[!][/{string}/[flags]]`
* For each line in [range] leading spaces and newlines are replaced with a
single space or the optional {string}. When [!] is added the leading
spaces of the first item are preserved.
Requirements
------------
* [vim-repeat](https://github.com/tpope/vim-repeat)