#vim - Wed 14 Mar 2007 between 16:16 and 17:09

NY Lost Funds



jamessanZathrus: it's easy if you have the text copied into a register already
bah
Zaba: ^^
setog3hi
rindolfHi setog3
Zabare
gnuvince, how?
gnuvince, em*cs has a script for that
ZathrusZaba: as jamessan noted, it's trivial to do if you have it in a register.
Zabajamessan, how?
ZathrusZaba: yank the GPL text into a register, then use :bufdo to put it into the top of every file.
presuming you have hidden enabled, and the GPL text is in buffer a, then :bufdo 1put! a will do it
Zabahm, tomorrow
gnuvinceZathrus: cool trick, thanks.
(even thought it wasn't addressed to me.)
magicbronsoni made a new filetype in my ~/.vim/ftdetect
actually i made two
both of them just do "setf xml"
zcml.vim works
pt.vim does not
any idea why?
specifically, "au BufRead,BufNewFile *.pt setf xml"
jamessanmagicbronson: looks like something in Vim is already setting *.pt to html. setf only changes the filetype if it hasn't yet been set. you'll want to use "set ft=xml"
magicbronsonjamessan: that explains it, thanks!
Zathrusgnuvince: alternately, :bufdo 0read some/path/to/gpl may work
yeah, that should work and is probably easier (but possibly much slower) than the 1put! trick
rindolfgnuvince: I saw your post about Emacs vs. Vim
gnuvincerindolf: did you like it?
rindolfgnuvince: I didn't read it fully.
gnuvince: just skimmed it.
gnuvinceok.
rindolfgnuvince: my problem with Emacs is that I could never get used to it.
gnuvince: some things about it just annoy the hell out of me.
gnuvince: but it is a good editor if you can get used to it.
gnuvincerindolf: it took me 2-3 times before I finally stuck onto Emacs long enough to get good with it.
rindolfgnuvince: I see.
Too bad viper is a vi emulator rather than a Vim emulator.
gnuvinceviper sucks.
It breaks a lot of Emacs modes.
jamessanyeah, if you're gonna try emacs, go all the way

Page: 4 11 

IrcArchive

NY Lost Funds