Bug#367566: [exp] Seems to run in an infinite loop when deleting a
fold with foldmethod=manual
Loïc Minier
lool at dooz.org
Tue May 16 21:21:05 UTC 2006
Package: vim
Version: 1:7.0-017+1
Severity: minor
Hi there,
(Thanks for preparing vim 7, it's amazing!)
When I opened a changelog.Debian with vim 7, it was all folded by
default, so I ":set foldmethod=manual" and "zd" to remove the fold, but
this hogs the CPU to 100%.
I tried with an extract of the changelog and without zip compression,
and the bug remains, so I suppose it is a bug, not just something that
takes long to complete. "za", "zD" and "zO" work fine.
^C stops the CPU consumption and finishes the operation.
Bye,
PS: attaching my uninteresting .vimrc just in case
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=fr_FR at euro, LC_CTYPE=fr_FR at euro (charmap=ISO-8859-15)
Versions of packages vim depends on:
ii libc6 2.3.6-7 GNU C Library: Shared libraries
ii libgpmg1 1.19.6-22 General Purpose Mouse - shared lib
ii libncurses5 5.5-2 Shared libraries for terminal hand
ii vim-common 1:7.0-017+1 Vi IMproved - Common files
ii vim-runtime 1:7.0-017+1 Vi IMproved - Runtime files
vim recommends no packages.
-- no debconf information
--
Loïc Minier <lool at dooz.org>
"You can gtk_main_run, but you can't gtk_widget_hide." --danw, 19-jul-04
-------------- next part --------------
" Configuration file for vim
" Prevent modelines in files from being evaluated (avoids a potential
" security problem wherein a malicious user could write a hazardous
" modeline into a file) (override default value of 5)
set modelines=0
"" Set the internal encoding,
"set encoding=utf-8
"" terminal encoding,
"set termencoding=iso-8859-1
"" and file encoding
"set fileencoding=utf-8
" some useful macros starting with the default map leader ("\")
" insert this text at the beginning of a reply to a bug report
map <Leader>debbug o This is a followup for Debian bug <http://bugs.debian.org/>.<CR><BS><Esc>k$hha
" Normally we use vim-extensions. If you want true vi-compatibility
" remove change the following statements
set nocompatible " Use Vim defaults instead of 100% vi compatibility
set backspace=indent,eol,start " more powerful backspacing
" Now we set some defaults for the editor
set autoindent " always set autoindenting on
set textwidth=0 " Don't wrap words by default
set nobackup " Don't keep a backup file
set viminfo='20,\"50 " read/write a .viminfo file, don't store more than
" 50 lines of registers
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
" set list mode and appropriate chars to display tabs, end of lines,
" wrapping, or trailing spaces
set list
"set listchars=tab:>-,trail:.,extends:>,precedes:<,eol:$
set listchars=tab:>-,trail:.,extends:>,precedes:<
" Suffixes that get lower priority when doing tab completion for filenames.
" These are files we are not likely to want to edit or read.
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
" We know xterm-debian is a color terminal
if &term =~ "xterm-debian" || &term =~ "xterm-xfree86"
set t_Co=16
set t_Sf=[3%dm
set t_Sb=[4%dm
endif
" I use a dark background
set background=dark
" Make p in Visual mode replace the selected text with the "" register.
vnoremap p <Esc>:let current_reg = @"<CR>gvdi<C-R>=current_reg<CR><Esc>
" Enable syntax highlighting by default.
syntax on
" Debian uses compressed helpfiles. We must inform vim that the main
" helpfiles is compressed. Other helpfiles are stated in the tags-file.
set helpfile=$VIMRUNTIME/doc/help.txt
if has("autocmd")
" Enabled file type detection
" Use the default filetype settings.
filetype plugin on
" Load indent files to automatically do language-dependent indenting
"indent
endif " has ("autocmd")
" Some Debian-specific things
augroup filetype
au BufRead reportbug.* set ft=mail
au BufRead reportbug-* set ft=mail
augroup END
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set ignorecase " Do case insensitive matching
set incsearch " Incremental search
"set autowrite " Automatically save before commands like :next and :make
set expandtab " Expand tabs to spaces
" dictionnaries for ^X^K completion
set dictionary=/usr/share/dict/american-english,/usr/share/dict/british-english,/usr/share/dict/french,/usr/share/dict/ngerman
" used for cindenting and "<" or ">" text shifting
set shiftwidth=4
" the last window will always have a status line
set laststatus=2
More information about the pkg-vim-maintainers
mailing list