An open API service indexing awesome lists of open source software.

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)

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