Open Side Menu Go to the Top

01-15-2008 , 11:29 AM
Hi,
This might be a long shot but I thought I'd throw it out there. I use vim alot for editing small data files (containing tabulated csv values) and the version I use has the annoying habit of adding a new line character at the end of every file when I save and exit. This results in an extra blank line at the end of some html tables that are generated from the data files.

I don't have access to the scripts that generate the tables so I can't just strip the newline there unfortunately...does anybody know how I can prevent vim from adding the last newline (ie. some command in my .vimrc file)?

Thanks!
Neko

(i guess I could just write a one liner to launch vim and then strip the last newline when vim exits but I would like other suggestions too).
vim question? Quote
vim question?
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
vim question?
01-15-2008 , 01:01 PM
Vim?!? I use Emacs for almost everything.
I use this version for windows: http://ntemacs.****************/
vim question? Quote
01-15-2008 , 01:24 PM
yeah I use (and love) emacs for most of my coding but vim is super fast for just making a few quick changes from a terminal.
vim question? Quote
01-16-2008 , 11:04 AM
one shameless bump and then I'll let it die.
vim question? Quote
01-16-2008 , 01:51 PM
Try the #vim chan on IRC, ... fastest answer ever
vim question? Quote
vim question?
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
vim question?

      
m