I am writing Perl scripts using vim. I really love this software, and when I 
find this bug, I really want it to be fixed right away.

The situation is:
platform: Ubuntu 12.04 LTS, terminal
case:
I split the screen into 3 parts used ":vs" under command mode, and each part of 
it was editing a Perl script file. Then in one part of it, I did this ->
Esc
:edit some_directory
And then comes the bug: the authority of the file being opened in one other 
part of the screen was changed into 'Readonly', and number of lines 
disappeared, too.

content of my vimrc file is added below, hope somebody can help me with this, 
thank you!

----vimrc-----

if has("syntax")
  syntax on
endif

set list
set listchars=tab:>-,trail:-

" remove the feature that compatible with vi
set nocompatible

" show line number
set number

" check file type
filetype on

" history record
set history=1000

" auto indent
set autoindent
set smartindent

" when the backspace button can delete words
set backspace=indent,eol,start

" when overwrite a file, backup it. except in vms system
if has("vms")
    set nobackup
else
    set backup
endif

" show line and column info in right bottom sight
set ruler

" show status of order
set showcmd

" show contents searched when typing
set incsearch

" map Q to gq
map Q gq

" hightlight search if supported
if &t_Co > 2 || has("gui_running")
    syntax on
    set hlsearch
endif

" auto find out the filetype and do something about the indent
filetype plugin indent on

" auto show words over 80 column shown in new line
autocmd FileType text setlocal textwidth=80

" make tab 4 spaces
set tabstop=4
set shiftwidth=4
set expandtab

" underline those over 80 words
au BufRead,BufNewFile 
*.s,*.asm,*.h,*.c,*.cpp,*.cc,*.java,*.cs,*.erl,*.hs,*.sh,*.lua,*.pl,*.pm,*.php,*.py,*.rb,*.erb,*.vim,*.js,*.css,*.xml,*.html,*.xhtml,*.tt
 2match Underlined /.\%81v/

" show the pairs of marks
set showmatch

" syntax
syntax on

----END----

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to