Questions tagged [startup]
Activity that occurs after invocation but before the first document is displayed
84 questions
1 vote
1 answer
89 views
What's the right way to disable keymappings in startup file _defaults.lua?
Some of the keymappings that are loaded by default in Neovim conflict with a keymapping I've been using for over twenty years. (It's built into my fingers now.) These conflicting keymappings are ...
1 vote
2 answers
121 views
Echo message with highlighting when opening Vim
I want to echo some fun ASCII art when Vim opens, For some reason though, when I try to add color highlights to the message they do not show up. So I created a vimscript function and mapped it to ...
0 votes
1 answer
170 views
Neovim :e $MYVIMRC results in E5113 error and :checkhealth in E5009
I'm trying Neovim for the first time now. Installed it in my desktop, and followed the Neovim kickstart and nothing went wrong. However, I tried to do the same to my new laptop, and running :e $...
1 vote
1 answer
36 views
Search for a pattern inside the content of each config script executed as startup
I am using Neovim on Windows, and I am trying to understand where and why a specific option (namely, noexpandtab) in my vimrc (actually, init.vim) is overridden. I know that I can see all the sourced ...
1 vote
1 answer
507 views
Slow Neovim startup, but only sometimes and not a specific plugin
Sometimes, Neovim takes a relatively long time to start up. But then subsequent openings (even of the same file) are very fast. Because it's so unpredictable, I find it hard to reproduce. It could be ...
4 votes
0 answers
391 views
Slow start time (~5s) of netrw on windows
On my work computer (windows 10, managed device from my company) neovim takes 5s-8s to start, when launching it (nvim .), and ~5s of it are from netrw. I assume this has something to do with ...
0 votes
1 answer
293 views
Pipe a (n)vim command to a bash command
I would like to process in a shell script the output of a neovim command such as echo &runtimepath. I found an online answer here suggesting to use: nvim --headless --cmd 'echo &runtimepath' --...
2 votes
1 answer
1k views
Neovim is looking for configs in current directory, how do I fix this?
I am trying to configure neovim by adding plugins via lazy in my C:\User\{username}\AppData\local\nvim folder. However when I try to use neovim it only works in the nvim folder and no where else. I ...
0 votes
1 answer
333 views
How to open the last modified file at startup?
As every user in this community understands, launching Vim using the command line without using any arguments or flags will edit a blank buffer with the :intro screen. Some distributions and utilities ...
-1 votes
2 answers
213 views
Set key to toggle full screen in MacVim
I use Vim from bash and I use MacVim as a UI in macOS. I max out my desktops, and try to keep "1 app per desktop", so MacVim sits into its own desktop. Except that the app starts in full ...
3 votes
1 answer
731 views
How to make Vim start at the end of a template?
I have skeleton template files for various filetypes, and when I create a new file based on these templates, the cursor always starts at the top of the file. It would be more convenient if it started ...
0 votes
2 answers
132 views
Change what Vim does by default when no files are given
When running vim with no command line arguments, it opens a splash screen describing Vim. I would like to control what vim does "by default", so I can make it do something more useful like ...
0 votes
0 answers
2k views
How to display ASCII art in Neovim startup screen without plugin?
Here's the ASCII art image I want to display in nvim dashboard: " ", " ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ", " ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛...
1 vote
1 answer
337 views
Why is my Vim startup dominated by "first screen update"?
I'm trying to investigate why Vim startup is pretty slow. vim -u NONE and the like are extremely fast as expected, so it is obviously my config/plugins, but what strikes me, is that most of the time ...
0 votes
1 answer
93 views
How do I position cursor according to filetype (gitcommit)?
Sometimes on start, the cursor is not at the top in gitcommit buffers. I assume that this is because it wasn't on the first line the last time I exited a gitcommit buffer and the position was saved in ...