Questions tagged [startup]

Activity that occurs after invocation but before the first document is displayed

Filter by
Sorted by
Tagged with
0
votes
0answers
31 views

How to prevent certain files from being sourced

I am not happy with the behavior of the indent/html.vim file, so I made a custom one in ~/.vim/indent/html.vim. However, vim -V2 still revealed to me that the /usr/share/vim/vim80/indent/html.vim is ...
0
votes
0answers
67 views

Don’t start in insert mode when opening a shell script

How can I prevent vi from starting in insert mode when opening a "test.sh"-like file with the vi-plugin "bash-support" v4.3 ? When I vim test.sh it opens in insert mode When I vim .vimrc it opens in ...
2
votes
1answer
60 views

How to find all scripts which modified a certain vim setting?

I can figure out which script changed a vim setting the last time with :verbose set errorformat? However, sometimes a setting is modified/appended several times and I want to see all scripts who ...
3
votes
0answers
35 views

How to get vim on Windows to start quickly

I installed Vim 8.1 with all the default options on Windows 10. I didn't modify vimrc. It takes more than 5 seconds to launch Vim (or gvim) each time I edit a file, and has just as long of a delay ...
3
votes
0answers
56 views

Pressing CTRL-O twice is required to return to previous entry in jumplist

When I start vim and I want to return to the last location in the jump list, I would like to do so with a single <C-O>. However, right now I have to press twice <C-O><C-O> to achieve ...
0
votes
1answer
57 views

May I have a Vim session report its “Mode” in its “Window Title”?

Clarification of the moving parts First, let me clarify what I mean by "Window Title", and what I expect to achieve On Windows OS, GUI programs will have three attributes: its Window Title texts, ...
0
votes
0answers
30 views

How to add nvim to launchpad in Ubuntu?

I'd like to add NeoVim to the launchpad in Ubuntu 18.04. When I open nvim in Ubuntu, it just opens a terminal with nvim running in it. If I added it to the favorites (i.e., the lauchpad), only the ...
0
votes
1answer
65 views

Vim slow to open buffers, but not specifically in any sourcing plugin step

I'm using Vim primarily for rails projects, and have found a fairly significant difference in the start up time between a couple of my projects. Here's one project's startuptime log, while opening a ...
1
vote
0answers
170 views

Specify GDB version for Termdebug

I am trying to use :Termdebug in Vim 8.1 on a CentOS machine. The default version of GDB at /usr/bin/gdb is less than the required v7.12. However, I have newer versions of GDB within devtoolset ...
0
votes
0answers
27 views

Size of empty files and empty stdin differ

When I open an empty file the size is zero but when I pipe the same file into vim the size is non zero. I measured the size of the input file/stream with the trick that is specified in vim's help. I ...
-1
votes
1answer
312 views

When provided folder, open default empty screen with CWD set to folder

At the moment when I run nvim path/to/folder/ it opens up the netrw window for it (more accurately, the Dirvish window for it), I'd like this to not be the case. Ideal behaviour is that when I do ...
3
votes
1answer
564 views

Delay before running vim command?

This is probably just a bandaid for a greater problem, but I had the following code for MacVim (GUI mode) in my .vimrc autocmd GUIEnter * winpos 100 50 The problem is it's not working properly on ...
1
vote
0answers
56 views

Weird sequence of characters temporarily when opening file

I know the title isn't all too descriptive but I don't have a better way to describe it. Whenever I open a file with vim (but interestingly not nvim), a bizarre sequence of characters shows under the ...
0
votes
1answer
84 views

Hide bottom message when open new file

As title, is there any options in vim that can do that? Need a way to control messages system in vim, and as usual even hard-coded, still need preserve some options for users.
7
votes
1answer
371 views

Strange vim/xterm interaction: auto-insertion of `"` register when opening file

This one is driving me mad. I'm using XTerm(330) and the latest vim 8.0.1365 (on FreeBSD). Sometimes, not always, about 1 in 5, when I open a file with vim, a funny line is inserted above line 1. ...
3
votes
1answer
310 views

Vim immediately sent to background

Whenever I call Vim from the CLI, either to edit a file (vim idk.tex) or without arguments, or run a command (vim +help), it gets sent to the background, as if I had pressed Ctrl+Z. In order to use ...
3
votes
1answer
56 views

Is it possible to open multiple files at the end or at the first occurrence of a string?

To open multiple files at a time I use this command (here using the vi tab feature): vim -p file1 file2 ... fileN If I want to open a file at the end or at the first occurrence of a text: vim + ...
0
votes
1answer
69 views

vim bind to update initialization without restarting. How to add the loading of local .vimrc?

Here's my existing bind I'm looking to improve: nnoremap <Leader>L :so $MYVIMRC<CR>:runtime! after/plugin/*.vim<CR>:runtime! after/ftplugin/*.vim<CR> This doesn't work to ...
9
votes
2answers
4k views

How to execute a command on vim startup

I just installed a plugin for python which displays methods tree. So I would like to open the tree on startup, so not necessary to push the buttons everytime I open some .py file. But, I want this ...
7
votes
1answer
178 views

Is there a way to edit secure data in vim without accessing the filesystem?

I am interested in using vim to edit a "secure" file, one that is stored encrypted elsewhere (say, somewhere in the cloud), and should not be written as plaintext to the local disk. So the sequence of ...
0
votes
2answers
168 views

How to combine reading from stdin (- invocation argument) with ++opt

I'm trying to combine two features of vim, but it doesn't seem to be possible. 1: vim - The first feature is invoking vim with a single-dash argument, which causes vim to read stdin and use the ...
4
votes
1answer
909 views

start vi automatically in hex mode

Once I run vi a.out, I can type :%!xxd, but I'm unable to automate the process like start vi automatically in hex mode create a key mapping from F1 to :%!xxd
2
votes
1answer
502 views

When are the files in ~.vim/after/ loaded?

I have some shortcuts for LaTeX in ./vim/after/latex.vim but when I open a LaTeX file, this shortcuts are not available, and I need to load the file manually. I guess this is related to the Latex-vim ...
0
votes
1answer
386 views

Why can I still run “vim” in cmd and powershell without put the directory of vim in the list of environment variables on windows 10?

I installed gvim 8.0 on Windows 10. And I find that there's no item about vim in the list of environment variables. Look at the pictures below. But I can still run "vim" and "gvim" in cmd and ...
4
votes
2answers
393 views

How to detect whether Vim has been invoked by another shell command?

I would like to modify the behavior of one of my mapping but only when Vim is reading data which were piped to it by $ vipe. The mapping closes/quits the current window/session depending on certain ...
2
votes
1answer
477 views

How to pause (with message) during .vimrc startup?

How can I reliably print a message and pause during processing of .vimrc? I'm using vim 7.4 (not gvim) on Linux Mint. The input() function behaves erratically as shown below. The redraw function ...
3
votes
1answer
3k views

Most annoying slow-down of a plain-text editor! [closed]

I am a happy user of VIM, except for some bits which I really want vim to improve on. One main issue is frequent slowdown of VIM spoiling the amazingly productive text-editing experience on a fastest ...
1
vote
1answer
192 views

Is there no way to prevent gvim from reading the system wide menu file?

When I start gvim without rc file (gvim -i NONE -u NONE -U NONE), gvim still reads $VIMRUNTIME/menu.vim. I am looking for a way to prevent gvim from doing exactly that. In fact, :help -U explicitely ...
2
votes
1answer
463 views

E576: Failed to parse ShaDa file: extra bytes in msgpack string at position 3

I'm switching from vim to neovim, but when starting neovim, I get the following error on startup: E576: Failed to parse ShaDa file: extra bytes in msgpack string at position 3 What does this mean, ...
0
votes
2answers
340 views

Is there some way to echo from terminal into new vim buffer [duplicate]

Let's say I do a simple shell command like ls. Is there some way to directly pipe the output into a new vim buffer, so that I could edit it in place or just have a look at it. Basically like less + ...
4
votes
1answer
793 views

Why does gvim read /usr/share/vim/vimrc instead of ~/.vim/vimrc

:help startup states, under 3. Execute Ex commands, from environment variables and/or files that (for Unix systems) $HOME/.vimrc or $HOME/.vim/vimrc is read and that The files are searched in the ...
17
votes
1answer
831 views

The simplest way to start Vim in private mode

I want to be able to easily start Vim in a private mode. Let's define a private mode as one that utilizes this set of commands: set history=0 set nobackup set nomodeline set noshelltemp set ...
17
votes
4answers
3k views

How can I get Vim to ignore all user configuration, as if it were freshly installed?

In order to ensure that behaviour is not affected by my personal config, I want to start Vim in a way that ignores all my user-installed config files, as if Vim had just been freshly installed for the ...
4
votes
1answer
1k views

non-default colorschemes can't be loaded; setting them manually after startup works

Currently, I use vim-plug for managing plugins and vim-colorschemes for my colorschemes - which doesn't work. Approach 1: in my init.vim: Plug 'flazz/vim-colorschemes' [...] syntax on colorscheme ...
1
vote
1answer
82 views

Elvis 2.2.0 : Input vs Insert mode

We can start elvis in input mode using -i option. Also we can start input mode with various commands that specified in help :help. But users call insert mode too which can also determined from h ...
1
vote
1answer
881 views

How can I prevent the default loading of ftplugin/text.vim for certain *.txt files

I have to edit a bunch of *.txt files for which I want to define a specific filetype. So, in my vimrc, I add a autocmd! BufReadPost bunchOfFiles/*.txt :set ft=bunchOfFilesFT This reads ftplugin/...
5
votes
2answers
674 views

How to specify a vim flag in the vimrc

I know that you can pass several flags to vim at startup. For example: the -w flags enables to records every keystrokes on the file output. vi -w output But I wonder if there is a way of doing ...
1
vote
1answer
105 views

I get the error “./en_US.UTF-8: No such file or directory” when starting nvi

I'm using nvi on Mac OS X 10.10.3, installed from MacPorts. Whenever I start the editor, the following message is displayed in my console: ./en_US.UTF-8: No such file or directory I'm just curious ...
2
votes
2answers
410 views

Why won't gvim start after reinstall?

I have just reinstalled gvim 7.4 on my 64 bit Windows 7 system. gvim.exe now does not start, (or appears not to start - it may be exiting immediately) If I start vim.exe then it works fine. This is ...
13
votes
1answer
638 views

Why is MacVim starting differently every other invocation?

I noticed when I sat down to do some work on my MacBook today that at some point recently something had gotten screwed up with respect to my .gvimrc settings: when I launched MacVim, everything seemed ...
13
votes
4answers
900 views

Why does this <Esc> normal mode mapping affect startup?

I'm experiencing a weird problem with a normal mode mapping of Esc. If you create the file escmapvimrc with the contents: set nocompatible set showcmd " Doesn't affect the problem: just makes it ...
0
votes
1answer
411 views

Prevent 'Press ENTER' when pathogen loads but keep for other scripts

I have pathogen setup however when it finishes loading I have to press the Enter key as shown in this screen shot. Is there a way how to disable the 'Press Enter or type command to continue' prompt ...
3
votes
2answers
3k views

`E575: viminfo: Illegal starting char in line: …` on startup

Recently on starting vim I've been getting an error message like this: E575: viminfo: Illegal starting char in line: wait_until(lambda _:<80><fc>^B ^[ldWA)^[:w^Mkkkdd^[:w^M<80><...
8
votes
3answers
2k views

How can I start vim and then execute a particular command that includes a \, from the command line?

In my ~/.vimrc, I have a command defined approximately like this: nnoremap <expr> <Leader>n ':new ~/Notes/' . strftime('%F') . '-' It is designed for creating notes files that contain ...
12
votes
2answers
3k views

How can I change Vim's start or intro screen?

When I start Vim without any files, I always see this: VIM - Vi IMproved version 7.4.580 by Bram Moolenaar et al. Vim is open source and freely distributable ...
17
votes
2answers
583 views

How do I make Vim use a default filename when not given any filenames?

I rarely, if ever, just open vim without filenames. Often enough, I want to test something out, usually a quick throwaway script, and I usually name them test.sh (or some variant thereof, like test.py)...
9
votes
2answers
1k views

Cut vim load time

I'm using https://github.com/carlhuda/janus vim distribution and clearly not satisfied with load time. What would be the best way to profile and speed-up vim load time? Also would be interesting to ...