Re: Tip #80: Restore cursor to file position in previous editing session does not work on Ubuntu

2007-05-16 Thread François Ingelrest
Hi, You should try to have a look at this bug and see if it's the same problem: https://bugs.launchpad.net/ubuntu/+bug/58002 On 5/16/07, Tushar Desai [EMAIL PROTECTED] wrote: This tip (which restores cursor to the last position in previous editing session) is the lifeline of any developer and

Re: what feature is required to return to last editing position?

2007-05-09 Thread François Ingelrest
Hello, I'm also using vim with an Ubuntu Feisty. Here is what I have in my .vimrc: Try to restore cursor position when reading a buffer au BufReadPost * if line('\) | exe normal '\ | endif It works quite well. On 5/9/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote:

Re: How to remove 2 or more empty lines when closing the the file?

2007-03-30 Thread François Ingelrest
On 3/30/07, Jean-Rene David [EMAIL PROTECTED] wrote: Note that this implementation will give you a warning if the pattern is not found. I'm using this to remove trailing spaces: Remove trailing spaces when saving text files See :help restore-position function! RemoveTrailingSpaces() exe

Re: Search and replace

2007-03-15 Thread François Ingelrest
I'm not an expert with this, but this should work with your example: %s/!(\(.*\)=\(.*\))!(\(.*\))/(\1)!(\3=\2)! On 3/15/07, Tien Pham [EMAIL PROTECTED] wrote: Hi all I have a pattern for search and replace but I couldn't figure out how to do it correctly. I suppose my problem is so simple for

Removing tilde characters in front of non-existing lines?

2007-03-15 Thread François Ingelrest
Hello all, I'm displaying the line number in front of each line, so the tilde characters in front of non-existing lines are useless for me. Is there a way to not display them?

Re: Removing tilde characters in front of non-existing lines?

2007-03-15 Thread François Ingelrest
From: Richard van der Leeden [EMAIL PROTECTED] To: vim@vim.org Sent: Thursday, March 15, 2007 12:27:41 PM Subject: Re: Removing tilde characters in front of non-existing lines? François Ingelrest-2 wrote: Hello all, I'm displaying the line number in front of each line, so the tilde

Re: Maximize gvim at startup

2007-03-13 Thread François Ingelrest
On 3/13/07, Mr. Shawn H. Corey [EMAIL PROTECTED] wrote: Why it's there a command to simply maximize the window? Because it's managed by the window manager, not by the app itself. You may be able to set the size to what your screen is able to display, but I don't think you'll be able to really

Removing trailing spaces on BufWrite

2007-03-11 Thread François Ingelrest
Hi, As the title says, I want to automatically remove trailing spaces when I save a file. This is what I put in my vimrc: au BufWrite * %s/\s\+$//ge This works correctly only when at least one match is found, an error is issued if I want to save a file without trailing spaces. However, using

Re: Removing trailing spaces on BufWrite

2007-03-11 Thread François Ingelrest
Thanks to both of you! I now use this command and it's working perfectly: au BufRead,BufWrite * if ! bin | silent! %s/\s\+$//ge | endif On 3/11/07, Thilo Six [EMAIL PROTECTED] wrote: François Ingelrest wrote the following on 11.03.2007 15:39: Hi, As the title says, I want to automatically

Auto indent lost when opening a new file?

2007-03-01 Thread François Ingelrest
Hello all, This is something that annoys me a lot, and I don't know how to get rid of it: as soon as I open a new file, auto indentation is lost. Suppose I am editing a Python file: def func(): If I hit enter after this line, the cursor will be placed on the next line with correct indentation.

Re: Auto indent lost when opening a new file?

2007-03-01 Thread François Ingelrest
Thank you very much for your answer. I have these lines in my .vimrc: if has(autocmd) au BufRead,BufNewFile *.cls set filetype=tex au BufRead,BufNewFile sconstruct set filetype=python Nes C syntax (used by TinyOS) au BufRead,BufNewFile *.nc set filetype=nesc au! Syntax nesc