https://github.com/tyru/share-cmdline-history.vim
Share command-line history between multiple Vims like bash's 'histappend' option (DEVELOPMENT VERSION)
https://github.com/tyru/share-cmdline-history.vim
Last synced: 5 months ago
JSON representation
Share command-line history between multiple Vims like bash's 'histappend' option (DEVELOPMENT VERSION)
- Host: GitHub
- URL: https://github.com/tyru/share-cmdline-history.vim
- Owner: tyru
- Created: 2016-01-23T10:24:22.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-24T13:09:36.000Z (over 10 years ago)
- Last Synced: 2025-03-04T02:43:28.464Z (over 1 year ago)
- Language: VimL
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What's this?
This plugin shares command-line history between multiple Vims like bash's 'histappend' option.
It executes `:rviminfo` before entering command-line,
and executes `:wviminfo` after executing an Ex command.
# Goals
1. [x] No configuration in .vimrc. Install & work at once
2. [x] Do not override user's mapping in .vimrc
* I'm using this setting in my .vimrc (Enter command-line with `'hlsearch'` and `'ignorecase'` enabled)
```viml
nnoremap (pre-:) :setlocal hlsearch ignorecase
xnoremap (pre-:) :setlocal hlsearch ignorecasegv
nnoremap <expr> : '<SID>(pre-:)' . (v:count ==# 0 ? '' : v:count) . ':'
xnoremap <script> : <SID>(pre-:)gv:
```
3. [x] Correct [count] handling
4. [x] Correct abbreviation expansion