| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11
Comments:
<0> exception: in 'easy gvim' for windows you might have that <0> it's stupid <1> that was my impression. anyway, I try to avoid vi <1> and no, emacs isn't any better <0> by seperating normal mode from insert mode <0> you can use all the normal keys for commands <0> '.' repeats the last command for example <1> a "normal" mode in an editor is where you can edit <1> it's ok to have a command mode - but it shouldn't be the default <0> * will search for the next word, equal to the word you're on <1> begin in insert mode, and escape to command mode if you want <0> exception: why is that? <0> exception: because you're used to it? <1> yep, that's how I prefer to work <0> editing a file is much more than just typing text! <2> Hi, pleaz can i have a number of visa ???
<0> that's just one aspect of it <3> not default, lol <1> Taxiiiiiiiii : 1-800-VISA00 <3> That's like saying that the spacebar shouldn't default to a space. <2> <1> g besoin du numro complet <1> mathieu_ : editing is mostly inserting and deleting characters <1> sometimes you do need to copy/paste or delete a line - but it's not the main feature <0> well <0> lets say you want to replace a word <1> however - it's ok you like VI, it's there for you <0> your cursor is located on tht word <0> how would you do it in your favourite editor? <0> (replacing a word is a common operation when editing, right?) <1> shift + end, type the new word <2> YA klkun ki parle francais ?? <0> well there you have it <0> you need to use keys that require your hands to move <0> in vi <0> cwnewword <0> where 'newword' is the new word <1> first you need to escape <0> no, because you're in command mode by default <0> :) <1> you were typing text before that <0> cwnewword<ESC> <1> fine, esc is just as far as end <1> and you had one more button <0> well, i tend to remap <ESC> to the `~ key :) <1> you can remap end to the button :P <2> pleaz can anyone help me !!! <0> :) <1> someone kill this thing already <0> what if your cursor was placed in the middle of the word? <0> cawnewword<ESC> <1> home, shift+end,newword <0> word, not line! <1> again, you pressed one more key <1> ok, ctrl+left,shift+ctrl+right, newword <0> i win :P <0> other example <0> you're on line 1 <1> now, you want to insert an image into the document :P <0> you want line 2 to be joined to line 1 <1> end, del <0> shift+J <1> oh now, a shift requires you to move the arm ! :) <0> nope <0> end does :) <0> well <0> i create my document with latex <1> enjoy VI, and I'll enjoy even more without it <0> so that would by \includegraphics{mypic.png} <0> by=be <4> latex + vi == win <4> though I tend to invoke the imagemagick to convert blah.png eps:blah.eps first <1> win -> notepad + wordpad <0> Asriel: hush :) <5> hi, how can i read strings separated by "," in a file? ie: "item1,item2,item3" @ test.txt ??? plz help <1> eSphelT : string.find <1> no, ignore that <6> mathieu: leta say I have a 100 bytes text file. I read it and in memory I remove the text I want. Now lets say I have 80 bytes. How do I "shrink" the file?
<5> i tried to make a function that set ups and array (it worked on php) <0> |Rocker|: delete it first? <5> but with casting and stuff cant take it to c <1> |Rocker| : just rewrite the file with the new 80 bytes <7> it should be easy to parse the string in a loop and store it in arrays <5> thats what i did, and no :/ <0> |Rocker|: there are write modes who get rid of the previous contents <7> well then somethings wrong with your code. lol. <0> so you start with a size of 0 <5> mhmm <6> I don't want to delete it first, I want to edit it :) <0> |Rocker|: you can't "edit" a file like that in a filesystem <0> |Rocker|: live with it <1> |Rocker| : open the file for reading, read it into memory, close the file. edit the buffer in memory. open the file for writing (not appending), write the buffer. <1> close it. <7> eSphelT: I would suggest putting your code on a pastebin site before asking again <6> If I have a very large file ? <0> |Rocker|: read to another file while processing <1> |Rocker| : create another, temportal file, and copy it chunk after chunk, and then delete the original and rename the temportal copy <0> |Rocker|: move afterwards <0> s/read/write/ <5> ok sry <0> exception: sorry, i just used a vi command :) <1> mathieu_ : as usually, it didn't work :P <0> exception: :) <6> ok I got it thx <6> It was a shock for me that I cannot edit a file using C++ <4> http://www.pcmag.com/slideshow_viewer/0,1205,l=&s=26945&a=171997&po=12,00.asp <0> |Rocker|: it's not specific to C++ <4> well, it made me laugh <0> |Rocker|: it's just the way a filesystem works. a filesystem is not made to edit files like an editor <6> mathieu_: another shock ! <0> |Rocker|: that's why we have software that edit files <7> rofl <7> vista detects itself as slowing the startup process... <7> haha <6> if I want just to overwrite some data, I can find the place using tellg(), seekg() and do it ? <0> if you know the offset <6> ok thx <8> hmm, ispell integration in kopete took affect without a restart, nice. have both aspell and ispell installed, but i'm not getting spell checking in xchat; i did under windows <9> hi <9> i am looking for job <5> how could i cast string to char*? tried (char *)string_name but that didnt make it =/ <9> no it easy <10> what type is string? std::string? <9> there is a method in the cl*** for that <10> it returns const char * though <5> std::string <5> basic string i guess <9> const char* is all u need <5> ill try ty <9> it is an rvalue thats all <10> joshg that's a silly statement <5> well, my variable is char* <5> so const char* will surely not make it :/ <10> what if he wants to use a library that changes the string? const char * alone won't cut it <5> jackson can u give me a hand please? ie: char *letter[8]; string stringname; letter[0] = "text" + stringname; <5> it turns into a really ugly exception :( <11> :/ <11> why are you using a char* array? <5> so i can edit it values <5> its* <9> sounds lame <11> wtf? <5> if i const char[num][num] i couldnt re-value it <5> like char[0] = "text"; <11> string stringname = "text"; stringname = "using a string"; <11> well, you still have to allocate memory for a char* string <9> blah <11> eSphelT, stop using char* strings, and start using std::string's <9> that is great advice <12> http://www.lifesite.net/ldn/2006/feb/06022201.html
Return to
#c++ or Go to some related
logs:
bmp2avi.c #desisex undernet #linuxhelp madunna #javascript #linuxhelp #linuxhelp #AllNiteCafe #mirc aos piczo
|
|