Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [error]

Requests to interpret and troubleshoot error messages from Vi / Vim.

1
vote
1answer
34 views

Netrw error: “Illegal PORT command”

I installed Vim 8.1.1 on Windows 10. My _vimrc in C:\Users\Maggyero has the following lines: set spell set spelllang=en,fr set spellsuggest=5 When I open Vim, I get the following message: Alerte ...
6
votes
1answer
172 views

In Linux, on an extremely long running vim session, calls to system() fail with E484 “can't open file /tmp/<tempfile>”

I've noticed this only on long running vims in my Linux server. I've narrowed down the E484s to lines of my vimscript that call system. I just wonder if there is a way to deal with this because so ...
1
vote
0answers
130 views

Why does “E89: No write since last change” error not occur when commands are joined with bar?

I have :set hidden set in my ~/.vimrc. First I did this: vim foo bar :bnEnter ihelloEsc :bpEnter :bd#Enter The :bd# command leads to this error: E89: No write since last change for buffer 2 (add ! ...
1
vote
1answer
59 views

Why “there was a problem with vi” when saving a git commit message with :wq after accidental :Wq?

When I have typed a commit message with vim and, in haste, typed :Wq instead of :wq I get an error: E492: Not an editor command: Wq from which I can (falsly?) recover, meaning the editor seems to ...
6
votes
1answer
57 views

When should a function *not* be defined with “abort”

If you define a function with the abort argument, your function will abort as soon as an error is detected. Is there any case where this is not what you'd want? Even if your function needs to perform ...
1
vote
1answer
63 views

'Can not set language' error on SpaceVim launch

I'm a very new vim user and I'm enjoying it, so I've decided to try SpaceVim. But each time I launch vim, I see the error Can not set language to en_US.utf8, and vim gives me the option to press and ...
2
votes
2answers
291 views

How can I suppress startup error E575?

If I quit Neovim's containing terminal without exiting Vim first, then the next time I run Neovim I get the error: E575: Error while reading ShaDa file: mark entry at position 2957 has Press ENTER or ...
1
vote
0answers
52 views

How does one automatically run a function when any error message appears?

I would like to play sounds for accessibility reasons. Do I need to patch and compile (neo)vim to provide some sort of OnError autocmd? edit: more generically I'm looking for a way to hook into ...
1
vote
0answers
38 views

Vim cmdline breaks my view of a file when outputting errors from linters

I really don't know how to explain this, but when I get an error in the cmdline with some linters (Ale and Syntastic for example), it shifts up and basically breaks the view of my code. Vim itself ...
0
votes
0answers
74 views

error detected while processing syntax/sh.vim

Whenever I open my ~/.bash_profile on my Mac, I start getting these lines: "~/.bash_profile" 534L, 20509C Error detected while processing /Users/abdullah/.vim/syntax/sh.vim: line 242: E402: Garbage ...
0
votes
0answers
191 views

Backspace doesn't work in vim on windows 10

My current vim setup on windows 10 doesn't allow using backspaces (insert mode and command mode). I always get the error "E319: Sorry, the command is not available in this version". When I run :...
1
vote
1answer
128 views

Find file for given line number when given an error

I'm trying to debug my Vimrc config files but I can't find the file where the error is coming from, is there a way to find the file that the line is coming from? For example, I'm given this error: ...
1
vote
1answer
198 views

BufWinLeave * mkview with unnamed file: Error 32

Following this good piece of advice, I have added these lines to my .vimrc. augroup AutoSaveFolds autocmd! autocmd BufWinLeave * mkview autocmd BufWinEnter * silent loadview augroup END It ...
0
votes
0answers
23 views

'highlight Cursor' causes startup error message 'Cursor xxx cterm=bold ctermfg=0 ctermbg=0 guifg=bg guibg=fg'

The line highlight Cursor in my .vimrc causes the following line to appear whenever i start vim: Cursor xxx cterm=bold ctermfg=0 ctermbg=4 guifg=bg guibg=fg Press ENTER or type command to ...
0
votes
0answers
67 views

NerdTree(Tabs) related errors whenever opening quickfix window

It's my first time using Vim, and I've been playing around with it for a couple of days. Just now I realized that whenever I open the quickfix window, a list of errors appear. Apparently they're ...
2
votes
1answer
454 views

Vim does not save any usage history (E886: Can't rename viminfo file)

I just installed Vim and gVim, version 8.0.1026 under Windows 16 64bits. Everything works well, except that the program(s) can't save any historical information about my usage (e.g. recent files, ...
0
votes
1answer
50 views

Change messages display duration

Is there a way to make Vim's messages stay longer on the screen? Messages and error messages are currently shown for a very short time; for about half-second, if not mistaken.
1
vote
1answer
580 views

Vim says I don't have solarized colorscheme whereas I have that

Vim gives me this error :- Error detected while processing /home/piggy/.vimrc: line 23: E185: Cannot find color scheme 'solarized' Press ENTER or type command to continue But I can change to ...
0
votes
1answer
119 views

Vim Latex Suite, suppress viewer errors

Question on vim latex suite (the link is provided to avoid confusion). When I see the compiled pdf using \lv command, it sometimes show error message spitted out by the viewer on top of the editing ...
4
votes
1answer
145 views

Vim-Markdown-Folding plugin error BufEnter E117

Inspired by Drew NEIL's course and the 'nested-folding' feature for Markdown files, I've installed the Vim-Markdown-Folding plugin, on my Vim (:version). The GitHub directory was copied into the ~/....
5
votes
1answer
340 views

Print an error message without “Error detected while processing function”

If I type: :echoerr "test error" I simply get the message printed (with red background): test error However, inside a function: function! Printerror() echoerr "test error" endfunction I get ...
0
votes
1answer
64 views

Delay with remapped q

I've remapped q to :bp, but to get an instant response, I have to press it twice. Otherwise there's a two second delay. What could be causing this and how can I fix it? function! NetrwMapping() ...
2
votes
1answer
56 views

Why do I get an E488 error when printf .vimrc?

I'm trying to automate the creation of .vimrc using this command: printf "\n# Funcionar como vim y no como vi\nset nocompatible\n\n# Colorear sintaxis\nsyntax on\ncolorscheme sienna\n\n# Otros seteos\...
3
votes
1answer
129 views

Don't fail if pattern is not found

I have the following autocmd to search for function definitions in C files. autocmd Filetype c,cpp execute "nnoremap ]m /\\v^[^=]*(([a-zA-Z_][a-zA-Z_0-9]+)|(operator .*))\\(.*\\)( const|:)?( \\{)?$\&...
3
votes
1answer
72 views

How to not display a certain error

My situation is, I have set nowrapscan, however now, when I hit the end of a file, it will display E385: search hit BOTTOM without match for: \v^[^=]*(… How can I avoid that from displaying? I used ...
2
votes
1answer
74 views

Why is vim giving me an “i <Up> * <Esc><Up>” startup error with the mapping “inoremap <Up> <Esc><Up>”?

Here is are the startup errors when I run vim: i <Up> * <Esc><Up> i <Down> * <Esc><Down> i <Left> * <Esc><Left> i <Right&...
-1
votes
1answer
161 views

Why Error E172 on Execution?

Code "" http://vi.stackexchange.com/a/7787/2923 function! OpenSelectionAsTabs() range let tabnr = tabpagenr() for line in range(a:firstline, a:lastline) execute "tabedit " . getline(...
2
votes
1answer
246 views

E334: Menu not found: Window.Minimize

I'm using MacVim installed with brew and everything works pretty fine, but (and there always is a "but") when I launch it as mvim from the terminal, it says Error detected while processing /usr/...
5
votes
1answer
528 views

How to cut/trim line in statusline?

I'm trying to cut string returned from fugitive plugin. It returns branch name of current file. By default returned string is Git(branchname) and this is why I want to get rid of odd Git(..) wrapper. ...
2
votes
0answers
614 views

How to resolve gVim startup error “No D-BUS daemon running”

Stating gnome-vim from the terminal on Linux Mint 17.3 I am getting the following error: An error occurred while loading or saving configuration information for gvim. Some of your configuration ...
8
votes
2answers
312 views

Why does vim blink randomly when I'm navigating through code?

# vim --version VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 31 2015 23:36:07) # cat /root/.vimrc map <F2> :w\|!sh % <cr> map <F3> :w\|!bash % <cr> map <F4> :w\|!...
1
vote
1answer
42 views

vim-autoformat plugin - undefined shiftwidth function

I'm getting undefined shiftwidth function error when I try to run Autoformat html in vim-autoformat plugin. AFAIU shiftwidth is a variable, not a function. Checking plugin's source I see that it ...
4
votes
1answer
546 views

Trying to install pathogen, but where?

I make a .vim directory in my home directory. I then made an autoload directory and a bundle directory. I added the pathogen.vim file to the autoload directory. I then added execute pathogen#infect() ...
5
votes
3answers
402 views

How do I open file under cursor, when the filename has a trailing dot?

There is a file with name ./folderA/folderB/file.. And there is text: ./folderA/folderB/file.:abcdefg When I move the cursor on letter B and type <c-w>f, it says E447: Can't find file "./...
0
votes
1answer
389 views

Why I'm getting Invalid arguments for the function when using double-quotes?

I'm trying to insert a filename into text as below: :put=expand("%") but I've the following errors: E116: Invalid arguments for function expand( E15: Invalid expression: expand( Why this doesn'...
2
votes
1answer
295 views

Why is ZQ not exiting vim?

:q! and ZQ both fail. I had a file opened; I made a new tab with :tabnew (just for some register swapping); I switched back to my main file and wrote my changes to a new filename; I tried ZQ to no ...
1
vote
1answer
105 views

How to mark a buffer as intentionally temporary (i.e. not to be saved)?

I wrote this line into my .vimrc today: nnoremap <leader>rtp :below new \| execute append(0, &runtimepath) \| s/,/\r/ <CR> to display my runtimepath in a new buffer with one path per ...
10
votes
1answer
10k views

Why am I getting a “E488: Trailing characters” error on this custom command?

I have a ~/.vimrc that contains just this: function! NewFile() let filename = input("Filename:") endfunction command NewFile :call NewFile()<cr> (of course my real .vimrc is more ...
4
votes
3answers
974 views

Can't change directory to network drive

Our company has recently changed to networked home directories. This includes setting enviroment variables. This has created the odd situation that gvim thinks my home directory is : :echo $HOME H:\...
3
votes
3answers
1k views

regex: how to replace “\[”?

I have this sample line in the buffer: export PS1="\[${Cyan}\]$(((SHLVL>1)) && echo "${SHLVL}\[${IBlack}\].")\[${IGreen}\]\u\[${IBlack}\]@\[${Purple}\]\h\[${IYellow}\] \w \$ \[${Color_Off}\...
4
votes
1answer
159 views

Absolute script-file line-numbers in Vim-function errors

When Vim reports errors within a function it typically reports relative line numbers. For example: Error detected while processing function Foo: line 11: E123: Blah blah Here indicating the issue ...
3
votes
2answers
100 views

Scroll buffer-window whilst Ex-log open

From time to time I do a source of a script and N errors and warnings manifest. As the errors/warnings show it is impossible to scroll buffer/window. Cursor, at least in gvim is a bold white x. The ...
2
votes
2answers
692 views

c:\Program is not recognized error while running vimdiff

I use windows XP for testing and running some programs. I installed Vim on the machine, but when I run vimdiff on two files, I get the following error: '""C:\Program' is not recognized as an internal ...
3
votes
2answers
2k 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><...
19
votes
3answers
3k views

What does `<Bar>` mean?

In answering a question just now, I mentioned using a normal mode key mapping that can be found at vim.wikia.com. In the middle of explaining the key mapping, I realized that I had no idea what <...
10
votes
1answer
360 views

How can I stop Vim from writing a file without throwing an error?

I'm trying to improve the code from this answer to ask for confirmation before creating the missing directory, this is what I write: function! CreateDirectoryAskConfirmation(path) if !isdirectory(...