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

Closed
GoogleCodeExporter opened this Issue Aug 18, 2015 · 8 comments

Comments

Projects
None yet
1 participant
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

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

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

[deleted comment]
[deleted comment]
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

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

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

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

  • Changed state: Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment