feature request: paste global buffer directly at splash screen
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 5.4k
- Forks
- 181
- PR merge metrics
- No merged PRs in 30d
Description
When I open NeoVim without the vim-startify plugin installed, I can paste directly from the global clipboard, onto the neoVim splash screen, creating a new file buffer by pressing keys ctrl+shift+v
I can instantly see what I have pasted.
Vim Startify does not yet support this, and the additinal stap of pressing key e for edit seems an unnecessary extra step.
It's not much extra to do, but I never remember.
Can we replicate this functionality with the vim-startify plugin.
I tried to code this myself, and think it is a very simple mod, but don't know much coding or vimscript, so did not get far.
I think it is as simple as modifying the file
../vim-startify/autoload/startify.vim
with something like the following additions
```
13 " " added below 4 lines 6/1/2025
" if g:startify_enable_special
" call append('$', [s:leftpad .'[p] paste clipboard', ''])
" endif
" call s:register(line('$')-1, 'p', 'special', 'enew', '')
```
```
129 " " added below function 6/1/2025
" " Function to paste clipboard content into an empty buffer
" function! s:paste_clipboard() abort
" " Close the Startify splash screen
" call s:close()
"
" " Paste clipboard content into the current (now empty) buffer
" if has('clipboard')
" silent! execute 'normal! p'
"
" silent! execute 'normal! "+p'
"
" else
" echo "Clipboard support is not available"
" endif
" endfunction
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with autoload/startify.vim and the existing key registration around the lines cited in the issue. Compare the requested Ctrl+Shift+V behavior with how the splash screen closes and buffers are created, then verify in Vim or Neovim that clipboard text opens as a new buffer without pressing e.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vim
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100