|jamessan||Zathrus: it's easy if you have the text copied into a register already|
gnuvince, em*cs has a script for that
|Zathrus||Zaba: as jamessan noted, it's trivial to do if you have it in a register.|
|Zathrus||Zaba: 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
|gnuvince||Zathrus: cool trick, thanks.|
(even thought it wasn't addressed to me.)
|magicbronson||i made a new filetype in my ~/.vim/ftdetect|
actually i made two
both of them just do "setf xml"
pt.vim does not
any idea why?
specifically, "au BufRead,BufNewFile *.pt setf xml"
|jamessan||magicbronson: 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"|
|magicbronson||jamessan: that explains it, thanks!|
|Zathrus||gnuvince: 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
|rindolf||gnuvince: I saw your post about Emacs vs. Vim|
|gnuvince||rindolf: did you like it?|
|rindolf||gnuvince: I didn't read it fully.|
gnuvince: just skimmed it.
|rindolf||gnuvince: 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.
|gnuvince||rindolf: it took me 2-3 times before I finally stuck onto Emacs long enough to get good with it.|
|rindolf||gnuvince: I see.|
Too bad viper is a vi emulator rather than a Vim emulator.
It breaks a lot of Emacs modes.
|jamessan||yeah, if you're gonna try emacs, go all the way|