proteanthread / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

7.4a.24 BETA can't remove lines #152

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Latest vim from mercurial repository can't remove lines.
Steps to reproduce: launch vim, press "i" to go to insert mode, then press a 
few times "enter" to make new lines. Now those lines neither "backspace" nor 
"delete" can't remove.

Version:7.4a.24 BETA
Configure: ./configure --enable-rubyinterp --enable-pythoninterp 
--enable-perlinterp --enable-gui=gtk2 --enable-cscope --prefix=/usr 
--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu/

Original issue reported on code.google.com by HiAngel...@gmail.com on 16 Jul 2013 at 11:51

GoogleCodeExporter commented 9 years ago
I just noticed one thing: original(precompiled from repository) ViM shows below 
label "--insert--" when in insert mode. But the mercurial one lefts this field 
empty.

Original comment by HiAngel...@gmail.com on 17 Jul 2013 at 12:09

GoogleCodeExporter commented 9 years ago
The behavior you're expecting is not default behavior in Vim.  Both of those 
require settings to be changed.

For the first, you likely had "set backspace=2" in the config you were 
previously using.  For the latter, that only happens when you have "set 
showmode" configured.

Original comment by vega.james@gmail.com on 17 Jul 2013 at 1:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I asked vim for those values: 
"set backspace?" backspace= 
"set showmode?" noshowmode
If I set showmode, behaviour remains as was.
By the way, now I've compiled ViM left in the sources and default one installed 
in system. Default works as I expected.
UPD: If I set showmode, "--insert--" label appears. But lines deletion do not 
works anyway.

Original comment by HiAngel...@gmail.com on 17 Jul 2013 at 1:43

GoogleCodeExporter commented 9 years ago
It seems that you run in 'compatible' mode.This could be due to the lack of a 
vimrc.

I suggest the following:
1. Start Vim.
2. In Normal mode, type
    :e ~/.vimrc
followed by Enter.While you're typing that, it should appear at the very bottom 
of the Vim screen.
3. In that new file, enter the following lines (in Insert mode):

" Vim configuration file
runtime vimrc_example.vim
" user customizations come here
set showmode

4. Go back to Normal mode, then exit with saving:

    :x

That's all.The vimrc_example.vim includes
    set backspace=indent,eol,start
so you don't need to repeat that one. The next time you start Vim, it should 
let you backspace over a linebreak while in Insert mode, and --INSERT-- 
--REPLACE-- --VISUAL-- etc.should appear at the bottom when you aren't in 
Normal mode.

Best regards,
Tony.
-- 
"I would rather see a saloon on every corner than a Catholic in
 the White House.  I would rather see a nigger as president."
      [Bob Jones, Sr., founder of Bob Jones University]

See
    :help 'backspace'
    :help 'showmode'

Original comment by antoine....@gmail.com on 17 Jul 2013 at 2:10

GoogleCodeExporter commented 9 years ago
It works, thanks you very much! By the way: aren’t you magician?
P.S. I can't find sacramental button: how to close bug?

Original comment by HiAngel...@gmail.com on 17 Jul 2013 at 2:33

GoogleCodeExporter commented 9 years ago
You need to find commands on your system that will copy and move files.  cmd /c 
copy  -and- cmd /c move  worked under windows xp.  Just set 
g:netrw_localcopycmd and g:netrw_localmovecmd to whatever works for you.

Original comment by drc...@campbellfamily.biz on 4 Mar 2014 at 6:10