LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 09-05-2012, 12:10 AM   #1
cin_
Member
 
Registered: Dec 2010
Posts: 266

Rep: Reputation: 23
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.
Code:
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 01:08 AM. Reason: gramm`err
 
Old 09-05-2012, 05:47 AM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Lightbulb



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.

Code:
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, 07:16 PM   #3
cin_
Member
 
Registered: Dec 2010
Posts: 266

Original Poster
Rep: Reputation: 23
Figured

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:

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

And this:

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

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

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


Reply

Tags
vim


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 11:33 AM
VIM 7.2 upgrade issues - CentOS5 deibertine Linux - Software 7 06-02-2010 07:20 PM
vim syntax highlighting issues sd|| Linux - Newbie 6 04-29-2010 10:54 AM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 05:26 PM
Vim and Security issues carlosruiz Linux - Software 4 12-05-2005 01:52 AM


All times are GMT -5. The time now is 11:35 AM.

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