Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smondet/ctrlp-insert_from_systemlist
Call a shell command, pick a line with CtrlP, insert it.
https://github.com/smondet/ctrlp-insert_from_systemlist
Last synced: 16 days ago
JSON representation
Call a shell command, pick a line with CtrlP, insert it.
- Host: GitHub
- URL: https://github.com/smondet/ctrlp-insert_from_systemlist
- Owner: smondet
- License: mit
- Created: 2016-02-10T00:19:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-10T02:05:05.000Z (almost 9 years ago)
- Last Synced: 2023-03-12T03:03:29.188Z (almost 2 years ago)
- Language: VimL
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `ctrlp-insert_from_systemlist`
Call a shell command, pick a line with CtrlP, insert it.
Example setup:
```vim
Plug 'smondet/ctrlp-insert_from_systemlist'
let g:ctrlp_extensions = [ 'insert_from_systemlist'] " Add it to the list of CtrlP extensions
fun! GetDates()
let id = ctrlp#insert_from_systemlist#run_with_command('gdate -R ; gdate -I ; date ')
call ctrlp#init(id)
endfun
nmap pid :call GetDates()
nmap pig :call ctrlp#init(ctrlp#insert_from_systemlist#run_with_command('git ls-files'))
```