#vim - Mon 23 Apr 2007 between 00:47 and 01:34

NY Lost Funds



zanihey duds, is there a way to have a shell inside vim?
like on a split or tab?
thoratno
zanithorat, pity, would be nice to have it
thoratzani: you can try this plugin though: http://vim.sourceforge.net/scripts/script.php?script_id=165
NBrepresenthi, i don't know much about vim scripting, but i'd really like to set up some regular expressions to remove any table, tr, or td tags from a file...
does something like this exist, or does it sound like it would be not too hard to accomplish?
calmarNBrepresent: tpopes' surround.vim or html.vim
\amethystNBrepresent: remove the tags or the entire element (content and all)?
NBrepresentjust the tags.
Chap00linduds? no duds here.
calmardat or similar (delete a tag)
NBrepresentit would be so that when i'm converting a site from a table based layout to CSS, i could start with just the content, minus all of the garbage table markup
calmarNBrepresent: may check out tidy as well. the tool. it may help or not
\amethyst%s/<\/\?\(td\|tr\|table\|thead\|tbody\)\_[^>]*>//g
err
then something to clean up extra whitespace, etc
sentei wish i could use perl's regexs in vim
calmarsente: no serious problem with vim's regex I guess so?
\amethystIt's a little annoying to have to remember two different syntaxes, but \v covers the common cases
a \p flag like \v would be nice
except that already means something :)
sentei just don't like all the
\'s
\amethystsente: put \v at the beginning of the expression and you can leave them out
sentei do use the \v sometimes, i just wish it adoped perl's syntax 100%, is all
:)
\amethystAll the old scripts, and the old vi users, would break :)
senteyeah i want a :set perl-regexs!
:)
\amethystsente: you know about :h perl-patterns, right?
senteread that long ago, yeah
it's all there, it's just ugly imo
\amethystyeah, Perl's non-greedy syntax, in particular, is much clearer
actioncalmar didn't know there's a {-}
calmardidn't know there's a {-}
scroolooseis *? the equivalent of that in perl style regex?
(where the * could be a few other things as well)
\amethystscrooloose: yeah
There might be slightly different interactions with the cut expressions, not sure
scrooloosei had to use \{-\} a few times... its insanely clumsy

Page: 2 9 16 23 

IrcArchive

NY Lost Funds