| |
| |
| |
|
<solsTiCe> very oftern i yank some lines, then go where i want to put them but delete more stuff with dd and i lost my other lines !. how to paste them ? i better use register ... <solsTiCe> ok i found my lines in "2 <setog3> what is the variable for the current file ? $/ .. or something like that I don't remember <strull> % <Uranus> hi <Uranus> is there a way in which I can change the 'wrappers' of a certain string globally? <Uranus> let me try to explain what I want <solsTiCe> how to reload a file ? <Uranus> something like :%s/String \d \D*<br \/>/<h4>String \d \D*<\/h4>/g <Uranus> only that would replace my variable digit and variable amount and type of text by d and D* <Uranus> so I would like to use something like &, only that it skips part of the contents of & <Uranus> and what should I use in a search command when searching for a newline? <Uranus> hm sorry I found it :P <setog3> thx strull <jamessan> solsTiCe: ":e" <solsTiCe> jamessan: thnx <phyrster> I have a file which goes like this: <phyrster> # <?xml version="1.0"?> <phyrster> # <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <phyrster> each line starts with a number and a dot. for example 1. 2. <phyrster> I want to delete all the starting number and the dot. <jamessan> :%s/^\d\+\.// <dindinx> :%s/^[0-9]\+\.// <phyrster> I tried this command: %s/^[1-100]\.//g but only 1 are deleted <jamessan> phyrster: that character cl*** says "match any number in the range 1-1 and any 0" <jamessan> phyrster: [] matches a single character, not a string <phyrster> jamessan: the file is like this: <phyrster> 2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <phyrster> 3. <fontconfig> <jamessan> ok. I already gave you the command to use that will do what you want <phyrster> jamessan: I got a pattern not found <jamessan> so, you have leading spaces, probably <jamessan> :%s/^\s*\d\+\.// <jamessan> or if you don't want to remove the spaces: <jamessan> :%s/^\s*\zs\d\+\.// <phyrster> ok. let me try <phyrster> jamessan: thank you so much. <jamessan> welcome <perlover> is there a way to access VIM plugin through sftp? <scruffy> http://www.vi-improved.org/wiki/index.php/IrcFaq seems to be broken. I get nothing but 'Connection: close'. <scruffy> (using Firefox) <hal8> scruffy: fine from here <Axioplase> Is it possible to fold text? I mean, *anything*... Cause I'm doing zf on selected comments in my code, but it says "no no no! you can't do that!" <jamessan> Axioplase: sure, ":set fdm=marker" and specify the fold markers you want to use. then you can fold anything in between those markers <scruffy> hal8: how about clicking on any of the links. no problems? <hal8> scruffy: fine <hal8> firefox 1.07, on fedora core 4 <scruffy> hal8: clearing my session cookies seems to let the page display (Debian etch) <hal8> weird <myryp> hi, i have set noexpandtab in my .vimrc, but it dosn't work. Other options in .vimrc work ok, but this one i need to type manualy. Do you know why? <scruffy> what is the help keyword to learn about referencing matches from :s// ? <ciaranm> sub-replace-special iirc <scruffy> ciaranm: that's it, thanks <strull> myryp: what gives :verb set et? (Note the ?) <myryp> it says that expandtab is enable <myryp> is it possible that indent script for ocaml override my config? <strull> probably <myryp> so, is it possible to set noexpandtab automaticaly after indent script? <jamessan> create ~/.vim/after/indent/ocaml.vim and add "set noexpandtab" <myryp> jamssan: thx! <oelewapperke> how do I change vim's keyboard mapping for export TERM="screen" ? <oelewapperke> ie I would like to map backspace to the default (which is as far as I'm concerned CTRL-? instead of CTRL-H) <oelewapperke> anyone ? <shruggar> why not change that in your screen config? <oelewapperke> because I also use programs that do not have their own keymaps <kg-> :imap ^? <BS> <kg-> get ^? by pressing ctrl-V, then backspace <shruggar> ***uming you havent remapped ctrl-v <kg-> i always remap ctrl-V to askjadkwerfh;wjelkfj3 <kg-> that seems like a great idea! <shruggar> I remap it to.. paste <ciaranm> you **** <cathper> I don't write paste that often ... <[set]> is there a way i can type in a line number to go to? <[set]> i want to go to a specific line in vim <dindinx> [set]: 42G will bring you to the 42th line <ipkiss> or :42 <[set]> i love vim <Industrial> :map tells me keys f1-15 do something <Industrial> but not what <Industrial> actually xF1-5 and S-xF1-5 <Industrial> i want to map some keys to use the + register for copying deleting and apsting <Industrial> since i wonk on windows i use ti alot <Industrial> work, even <Industrial> i'd like to know wich f keys i can use? <Industrial> s/?// <Fletch> How does ony find and/or replace in vim? <Industrial> :s/// <Industrial> searching is just / <Industrial> and searchgin backwards is ? <Industrial> theres also an option, :set hlsearch <Fletch> How about if a / is in the search criteria? <Industrial> it will highlight your search pattern <Industrial> \/ <Industrial> Fletch: theres alot of escaping in vim regexes <Industrial> \(this\|or\|this\) <Industrial> for example <ipkiss> Industrial: not necessarily, if you use magic or very-magic regular expressions <Industrial> ipkiss: i knwo <Industrial> raise your god <Industrial> praise <Industrial> the evil <Industrial> boom boom boom boom <Industrial> :) <Industrial> err, oops, wrong window <Industrial> :X <L_O_U> unable to find a tag even if present in the tags file. Any ideas ? <strull> what is your tags file and what gives :set tags ? <L_O_U> the tags file is ../tags and :set tags gives ../tags ! <L_O_U> Could have somthing to do with the ctags version ? <strull> no <strull> unlikely at least <L_O_U> In the vim doc Exuberant ctags is ***umed. My ctags is from emacs !
Return to vim or Go to some related
logs:
beginner css flash Who bought manattan island"
spitalul fundeni utmp no such process
|
|