On Sun, Jan 15, 2012 at 10:39:42AM EST, Pau wrote: > thanks a lot... but I forgot to mention that one main problem is that > I cannot know in advance where the new line is... isn't there a faster > way of telling vim to ingore new lines? > > thanks a lot!
[..] Per your initial post, I understood that the problem that you described was finding where you were in a lengthy document when you last edited it rather than telling Vim to ignore new lines? I would have thought that *by default* Vim graciously places the cursor where you were last editing a file without your having to try to remember any content and devising complicated search commands. Anyway that's exactly what it does in my setup and I don't remember configuring it in this respect. :h viminfo and possibly this Vim tip: http://vim.wikia.com/wiki/Restore_cursor_to_file_position_in_previous_editing_session I've never felt the need to do so myself, but I believe you can also have Vim save each file's jumplist to the viminfo file, so that when you resume your session you can use CTRL-O to backtrack to previous cursor locations in the document you are editing. :h jumplist But maybe I'm misunderstanding your use case? CJ P.S. Please don't top post *and* please trim...! -- You received this message from the "vim_use" 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
