mhinz / mhinz/vim-startify

feature request: paste global buffer directly at splash screen

Open
#557 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.