Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-04-2012, 11:10 PM   #1
Registered: Dec 2010
Posts: 277

Rep: Reputation: 24
Issues With Upgraded Vim

I recently upgraded to Vim 7.3, and since the upgrade my Vim has been acting oddly.

All of the issues I have been having I can work around but I have certain routines that are being interrupted. I had given in to having to become acquainted with my work arounds but I thought before I gave in I would see if anyone has any advice on fixes.

First of all, the syntax highlighting turned off, and through some finagling I managed to get that back to my old settings.

What I am still dealing with is three fold.

(i) The backspace button on my keyboard works outside of Vim but is unresponsive when in Insert mode. Is this a feature or a bug or a malfunction?
(ii) The delete button works on all characters except new lines. Again, with the backspace acting oddly the only way for me to move some code from one line to another is to yank and put.
This is one line.
This is<---when I rest my cursor here and hit delete.  Vim is unresponsive.
one line.
(iii) Lastly, and probably most simply solved, Vim used to remember the last line I edited upon exiting a text file, but now it forgets and I must run through my whole program again to find the line I last edited.
I want that `one line` to move up!

Last edited by cin_; 09-05-2012 at 12:08 AM. Reason: gramm`err
Old 09-05-2012, 04:47 AM   #2
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103

Sounds like your ~user/.vimrc files got erased so it is not generating ~user/.viminfo which stores the history.

This is what my .vimrc looks like.

syntax on -----> Color code on
set nu
set hlsearch
set autoindent 
set ruler
set history=100  ---> To save history in your viminfo you need this set to X # of commands. 
set mouse=a

Hope this helps.
Old 09-05-2012, 06:16 PM   #3
Registered: Dec 2010
Posts: 277

Original Poster
Rep: Reputation: 24

Thanks for the response.
I should have been less hasty. A simple search returned the response I was looking for.
My old .vimrc was blank so I figured it must have been something else, but adding this line:

set backspace=indent,eol,start
... fixed (i) and (ii).

And this:

set viminfo='10,\"100,:20,%,n~/.viminfo
function! ResCur()
  if line("'\"") <= line("$")
    normal! g`"
    return 1

augroup resCur
  autocmd BufWinEnter * call ResCur()
augroup END
... fixed (iii).

Last edited by cin_; 09-05-2012 at 06:21 PM. Reason: gramm`err



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installing vim-gnome or vim-gtk dependency issues with apt, aptitude, synaptic alagenchev Linux - Software 3 05-15-2012 10:33 AM
VIM 7.2 upgrade issues - CentOS5 deibertine Linux - Software 7 06-02-2010 06:20 PM
vim syntax highlighting issues sd|| Linux - Newbie 6 04-29-2010 09:54 AM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 04:26 PM
Vim and Security issues carlosruiz Linux - Software 4 12-05-2005 12:52 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration