Bug 11827

Summary: Error detected while processing BufReadPost Auto commands for "*":
Product: [Retired] Red Hat Linux Reporter: scot
Component: vimAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-06-01 17:21:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description scot 2000-06-01 17:21:13 UTC
Occassionally, when opening a file with vim I get this message:

Error detected while processing BufReadPost Auto commands for "*":
Mark has invalid line number
Press RETURN or enter command to continue

If I press enter, vim opens the file and everything appears to function
normally.  Curious what this actually means and if there's potential to
corrupt the file.

# rpm -qa | grep vim
vim-minimal-5.6-11
vim-enhanced-5.6-11
vim-common-5.6-11

here's my .vimrc:
--------cut here------
set ruler
set showmatch
set showmode
set title
set visualbell
set nohlsearch
syntax on

" SWJ 092199 syntax hilighting didn't work--found this at
" found this gem at http://www.vim.org/vimrc (see Sven's vimrc link)
"
" Set the colors for vim on "xterm"
if &term=="xterm"
  set t_Co=8
  set t_AB=%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm
  set t_AF=%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm
endif
--------cut here------

Comment 1 Bernhard Rosenkraenzer 2000-06-17 16:06:02 UTC
It's not a bug, it's a feature.
vim remembers the last line you edited in a file and goes back to that line.
If you delete the file and put in a file with fewer lines (or if you remove some
lines using a different editor), vim can't go to the line it remembered, and
that's what this error message complains about.