This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
vim-split-open/README.md

69 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2019-10-18 18:17:35 +00:00
# SplitOpen
2019-10-18 10:40:12 +00:00
2019-10-18 18:17:35 +00:00
This vim plugin opens file-pairs in a new split-window tab
## Usage
Use
:SplitOpen filename
with a .cpp or .h file as filename to open a new tab containing a vertical split
with the corresponding header file in the left window and the corresponding
source file in the right window.
2020-06-29 19:28:07 +00:00
Use
:Split
2020-06-29 19:30:19 +00:00
to open the corresponding header or source file to your currently open file in
2020-06-29 19:28:07 +00:00
a vertical split.
## Configuration
You can configure the following settings:
### g:splitopen_extensions
Use this dictionary to define your pairs of left-hand- right-hand-side file
types. E.g.
let g:splitopen_extensions = {"h": "cpp"}
always places a .cpp file on the right-hand side when opening an .h file and
vice versa.
### g:splitopen_set_fzf_keys
Set this option to 1
let g:splitopen_set_fzf_keys = 1
to have SplitOpen overwrite the default fzf keybindings ctrl-t/x/v for opening
files in splits or tabs to add an addional binding ctrl-s to call SplitOpen.
2019-10-18 18:17:35 +00:00
## License
SplitOpen is GPL-3.0 licensed. See LICENSE file for more info.
## Changelog
2020-06-29 19:28:07 +00:00
v1.1.0
* Added Split() command
2019-10-30 21:21:59 +00:00
v1.0.0
* Fixed error when reloading plugin
2019-10-20 13:53:29 +00:00
v0.0.4
* Add filetype configuraton
2019-10-18 19:05:08 +00:00
v0.0.3
* Add fzf.vim keybinding
2019-10-18 18:17:35 +00:00
v0.0.2
* Added delay-loading
* Added documentation
v0.0.1
* Initial release