Jun 29 19:06:26 < -- CLASS STARTED -- > Jun 29 19:06:35 Roll call please Jun 29 19:06:46 hhe :) Jun 29 19:06:59 Hi all Soumya here, Jun 29 19:07:02 * TanmayaT (n=sktmeenu@59.95.213.148) has joined #dgplug Jun 29 19:07:07 Soumya, type your full name Jun 29 19:07:16 oks Jun 29 19:07:26 Hi... Debmalya Sinha Here... Jun 29 19:07:26 hi all , ria das here :-) Jun 29 19:07:33 Hi This is Soumya Kanti Chakraborty joining in ... Jun 29 19:07:34 * kushal has changed the topic to: Welcome to Linux User's Group of Durgapur | Mailing list at http://lists.dgplug.org/listinfo.cgi/users-dgplualso jg.org | How to write "Hello World!" in gcc http://tv.dgplug.org/ | Old classes http://www.dgplug.org/irclogs/ | Tonight 7pm Vi by Kushal, 10:30pm gcc by __pjp__, 12:00AM shell by rishi | <--CLASS STARTED--> Jun 29 19:07:41 Soumya, what's oks? Jun 29 19:07:42 only name please Jun 29 19:07:51 Hi All, I am Samarjit Adhikari Jun 29 19:08:01 neeraj kumar here Jun 29 19:08:05 it is s ,supporting ok Jun 29 19:08:19 satya komaragiri \o Jun 29 19:08:35 it's me narendra Jun 29 19:08:41 nandy_lost, full name Jun 29 19:09:13 narendra kumar Jun 29 19:09:20 anyone left ? Jun 29 19:09:45 hi! its debashree banerjee Jun 29 19:09:51 ok, so good evening everyone Jun 29 19:09:56 Back in vi Jun 29 19:10:02 good evening sir Jun 29 19:10:15 everyone tried what ever we did last night ? Jun 29 19:10:22 counting it as yes Jun 29 19:10:23 Good evening Sir Jun 29 19:10:23 * ecntrk has quit (Read error: 104 (Connection reset by peer)) Jun 29 19:10:27 kushal, i have a question Jun 29 19:10:31 yes Sir Jun 29 19:10:33 ria, yes Jun 29 19:10:40 * pushkal (n=chatzill@117.197.18.83) has joined #dgplug Jun 29 19:10:42 Soumya, no need to answer everything Jun 29 19:10:42 kushal, yes Jun 29 19:10:43 * ecntrk (i=sunny@117.194.2.98) has joined #dgplug Jun 29 19:10:49 kushal, how to set indentation ? Jun 29 19:11:07 ria, not taught yet, you can use google Jun 29 19:11:18 kushal, ok Jun 29 19:11:23 Actually I'll have to view the last class data... until then... Jun 29 19:11:44 I'm continuing... Jun 29 19:11:50 and for that question yes kushal Jun 29 19:11:51 ok Jun 29 19:11:57 please pastebin someone Jun 29 19:12:00 so Jun 29 19:12:07 * chacha_chaudhry (n=dev@gnu-india/supporter/rakeshpandit) has joined #dgplug Jun 29 19:12:11 starting again, no more questions Jun 29 19:12:16 kushal sir,please continue Jun 29 19:12:18 open a file in vi Jun 29 19:12:29 susenj, no need to call sir anyone here Jun 29 19:12:29 kushal, i want to answer ria's qoestion Jun 29 19:12:37 samar, DON'T Jun 29 19:12:41 kushal, sorry question Jun 29 19:12:42 pushkal, http://www.dgplug.org/irclogs/ Jun 29 19:12:48 sorry Jun 29 19:12:48 EVERYONE FOLLOW THE RULES Jun 29 19:13:02 ria, no current logs Jun 29 19:13:04 press ! if you want to speak Jun 29 19:13:06 ok... Jun 29 19:13:12 ! Jun 29 19:13:16 pushkal, yes Jun 29 19:13:27 can u pastebin the above conversations Jun 29 19:13:27 pushkal, we never started yet Jun 29 19:13:28 http://pastebin.com/ Jun 29 19:13:32 ok.. Jun 29 19:13:48 please continue Jun 29 19:13:49 pushkal, and in *English* language , there is no *meaning8 of *u* Jun 29 19:13:51 ok Jun 29 19:13:57 open a file in vi Jun 29 19:14:03 pushkal, http://www.dgplug.org/irclogs/kushal_vi_1stclass.log Jun 29 19:14:17 ria, read that already Jun 29 19:14:23 opened kushal Jun 29 19:14:26 ria, pushkal both STOP Jun 29 19:14:50 now to go to the last line of the file , press G Jun 29 19:15:15 get out of the file Jun 29 19:15:26 Now to open a file in the last line command is Jun 29 19:15:30 vi + filename Jun 29 19:15:39 To open in the nth line Jun 29 19:15:45 vi +n filename Jun 29 19:16:13 To move around in the file Jun 29 19:16:27 Ctrl + F forward one screen Jun 29 19:16:42 Ctrl + B scroll backward Jun 29 19:16:56 Ctrl + D forward half screen Jun 29 19:17:10 * indradg has quit (Remote closed the connection) Jun 29 19:17:15 Ctrl + U backward halfscreen Jun 29 19:17:39 ok Jun 29 19:17:42 try them Jun 29 19:17:49 ok... Jun 29 19:18:06 ! Jun 29 19:18:08 ! Jun 29 19:18:13 ria, yes Jun 29 19:18:36 ! Jun 29 19:18:43 kushal, ctrl+B and ctrl +D cant understand Jun 29 19:18:45 Kushal da.. I don't have any mic...:( Jun 29 19:18:51 done Jun 29 19:18:59 kushal, ctrl +F worked though Jun 29 19:19:04 Jun 29 19:19:10 ria, half of the screen Jun 29 19:19:14 half == 1/2 Jun 29 19:19:16 so.. please if you could write your queries.. Jun 29 19:19:28 kushal, but nothing happened Jun 29 19:19:29 ecntrk, are you lost Jun 29 19:19:32 * arpita (n=arpita@117.201.97.146) has joined #dgplug Jun 29 19:19:47 kushal, the screen was the same Jun 29 19:20:01 Actually... I'm taking this session on windows machine... Jun 29 19:20:12 ecntrk, many are doing that Jun 29 19:20:25 ria, try properly it will work Jun 29 19:20:27 I can't make my debian etch work with broadband..:( Jun 29 19:20:28 kushal, sorry my net was not getting connected.has the class begun?? Jun 29 19:20:37 kushal, tried 2 times Jun 29 19:20:38 ria, with a bigger file Jun 29 19:20:41 arpita, yes Jun 29 19:20:43 Class started... Jun 29 19:20:52 kushal, though ctrl +F worked Jun 29 19:20:58 ria, TRY Jun 29 19:21:07 with a bigger file Jun 29 19:21:16 anyone else ? Jun 29 19:21:23 kushal, could you please repeat the last command? Jun 29 19:21:23 no.. done Jun 29 19:21:24 can we not use page up and page down instead of ctrl+f and ctrl+b? Jun 29 19:21:32 i believe Ctrl +D and Ctrl +U will only work if the file size quite big to browse Jun 29 19:22:00 * SDey (n=chatzill@117.194.96.135) has joined #dgplug Jun 29 19:22:02 susenj, samar type ! first then only speak Jun 29 19:22:04 Kushal... I can't expetiment these now.. cause I am into windows...My debian etch is not working wid broadband... Jun 29 19:22:14 kushal, ok fine Jun 29 19:22:19 ecntrk, ok, so just note down Jun 29 19:22:20 ! i have typed already Jun 29 19:22:23 Hi all ! Jun 29 19:22:26 Sure.. Jun 29 19:22:26 Jun 29 19:22:38 ecntrk, and ask for permission before speaking Jun 29 19:22:40 ! Jun 29 19:22:44 ecntrk, yes Jun 29 19:22:46 doopi Jun 29 19:23:03 ecntrk, ARE YOU ON DRUGS ? Jun 29 19:23:04 kushal, it's rather like page up and page down , so understood now Jun 29 19:23:05 I can't speak ... I dont have mic...:( Jun 29 19:23:12 What? Jun 29 19:23:19 ! Jun 29 19:23:20 ecntrk, here speak == type Jun 29 19:23:26 mavu, yes please Jun 29 19:23:28 can we get back? Jun 29 19:23:39 mavu, yes, please Jun 29 19:23:49 ok.. let's get back... Jun 29 19:24:02 thanks :) and sorry... i just added to the noise Jun 29 19:24:05 Jun 29 19:24:13 + to go to the first character of the line Jun 29 19:24:17 + to go to the first character of the nect line Jun 29 19:24:20 *next Jun 29 19:24:41 - first character of the last line Jun 29 19:24:42 * parthan has quit (Read error: 60 (Operation timed out)) Jun 29 19:25:13 only pressing e will take you to the end of the word Jun 29 19:26:26 Now basic search Jun 29 19:27:57 sorry got disconnected Jun 29 19:28:13 /searchstring Jun 29 19:28:35 * Yaniel (n=yaniel@dsl-trebrasgw1-ff44c100-223.dhcp.inet.fi) has joined #dgplug Jun 29 19:28:38 Now everyone try to search some string Jun 29 19:28:42 ! Jun 29 19:28:47 * chacha_chaudhry_ has quit (Read error: 110 (Connection timed out)) Jun 29 19:28:48 arpita, yes Jun 29 19:29:01 ! Jun 29 19:29:07 kushal, - is taking me to the first letter of previous line... Jun 29 19:29:09 * mavu_ (n=satya@59.178.160.205) has joined #dgplug Jun 29 19:29:22 arpita, yes, i typed wrong Jun 29 19:29:32 kushal, o.k Jun 29 19:29:36 ! Jun 29 19:29:42 ria, yes Jun 29 19:29:47 ! Jun 29 19:29:54 kushal, problem soleved Jun 29 19:29:59 * Kishan (n=Kishan@218.248.70.235) has joined #dgplug Jun 29 19:30:00 Jun 29 19:30:07 TanmayaT, yes Jun 29 19:30:13 does the string have to be in parentheses Jun 29 19:30:16 could someone tell me what you're doing? Jun 29 19:30:25 Yaniel, vi class is going on :) Jun 29 19:30:40 TanmayaT, no Jun 29 19:30:48 TanmayaT, and please type Jun 29 19:30:49 ! got disconnected.. could you please paste after kushal: now basic search? Jun 29 19:30:58 mavu, /searchstring Jun 29 19:31:10 As far as I understood you're training C with gcc? Jun 29 19:31:13 well i would but you see its not matching any string Jun 29 19:31:17 * kart__ (n=kart_@121.245.62.246) has joined #dgplug Jun 29 19:31:22 so i just wanted to confirm Jun 29 19:31:25 Jun 29 19:31:35 ! Jun 29 19:31:42 Yaniel that is from 10:30pm IST Jun 29 19:31:54 class of vi started? Jun 29 19:32:05 ! Jun 29 19:32:13 TanmayaT, like /ram will take you to the first occurrence of the ram Jun 29 19:32:18 pushkal, Jun 29 19:32:21 kart__, yes Jun 29 19:32:21 how to get to the next occurance of the same string ? Jun 29 19:32:34 ! Jun 29 19:32:36 ok got it Jun 29 19:32:50 pushkal, wait never told yet Jun 29 19:33:16 Jun 29 19:33:24 samar, yes Jun 29 19:33:39 Jun 29 19:33:41 Jun 29 19:33:46 To go to the next occurrence type n Jun 29 19:34:30 now to move search in the same direction press n Jun 29 19:34:47 and now to move search in the opposite direction press N Jun 29 19:34:48 ! Jun 29 19:34:54 Kishan, later Jun 29 19:35:16 to search forward , press /Enter Jun 29 19:35:28 to search backwards press ?Enter Jun 29 19:35:53 to search any specific text backwards , type ?string Jun 29 19:36:12 Kishan, yes please Jun 29 19:36:19 ! Jun 29 19:36:30 * mavu has quit (Read error: 104 (Connection reset by peer)) Jun 29 19:36:58 ria, yes Jun 29 19:36:58 what do you mean by searching in the same direction??? Jun 29 19:37:07 so.. pressing / or ? and then enter? Jun 29 19:37:20 ! Jun 29 19:37:20 ecntrk, yes Jun 29 19:37:47 kushal, i could not understand when to type n Jun 29 19:38:05 after one search entry? Jun 29 19:38:10 kushal, should i do esc first after /searchstring Jun 29 19:38:11 yes.. Jun 29 19:38:28 ria, to do the same search in the last direction you did Jun 29 19:38:58 kushal, cant understand what you mean by last direction Jun 29 19:39:12 ecntrk, please type ! first , then wait for your turn to speak Jun 29 19:39:21 kushal, nor could i understand /Enter Jun 29 19:39:54 ok... I will... Jun 29 19:39:56 ria, like , last last time you searched in the forward direction , now you want to do the same search in the forward direction Jun 29 19:40:02 ria, so, press n Jun 29 19:40:27 susenj, yes Jun 29 19:40:32 kushal, suppose i want to search the string the how will i do that? Jun 29 19:40:42 string "the" Jun 29 19:40:48 what is meant by searching forward.?i didn't get /Enter Jun 29 19:40:59 kushal, in backword direction? Jun 29 19:41:07 *backward Jun 29 19:41:08 when to use it? Jun 29 19:41:19 ria, you are not using Jun 29 19:41:31 kushal, i did not finish that's why Jun 29 19:41:43 ria, you are eof for now Jun 29 19:42:05 kushal, ok, but i did not understand many things Jun 29 19:42:05 * partha_ (n=partha@59.93.213.7) has joined #dgplug Jun 29 19:42:26 susenj, if you are in the first line of the file Jun 29 19:42:37 * chacha_chaudhry_ (n=dev@122.161.21.78) has joined #dgplug Jun 29 19:42:40 then 2nd or 3rd line is your forward direction Jun 29 19:43:30 ya that is ok,but /enter takes the corsor to the first character of the next line Jun 29 19:43:38 *cursor Jun 29 19:43:42 * indradg (n=indradg@59.93.210.77) has joined #dgplug Jun 29 19:43:42 Jun 29 19:43:48 susenj, what you searched for ? Jun 29 19:44:35 pls tell me,once i searched string,i have to press esc or not to use /enter Jun 29 19:44:36 * partha__ (n=partha@59.93.213.7) has joined #dgplug Jun 29 19:44:39 ! Jun 29 19:44:55 susenj, /enter Jun 29 19:45:01 * partha__ has quit (Client Quit) Jun 29 19:45:03 ria, yes please Jun 29 19:45:26 ! Jun 29 19:45:33 kushal, tell me the way to use n and /Enter Jun 29 19:45:35 * partha__ (n=partha@59.93.213.7) has joined #DGPLUG Jun 29 19:45:48 n is to do the last search Jun 29 19:45:57 kushal, suppose my 2nd and 4th line has a string "the" Jun 29 19:46:09 ria, if you did it in forward, then this will go forward Jun 29 19:46:14 kushal, i did not ask what it does , i asked the way to use Jun 29 19:46:32 kushal, first i will do /the Jun 29 19:46:33 ria, first type /the Jun 29 19:46:38 ria, then press n Jun 29 19:46:40 rian, then do '/the' to go to the first occourance Jun 29 19:46:53 kushal, then pressing n gives /then Jun 29 19:46:57 ria,then press n to go to the next occourance Jun 29 19:47:04 ! Jun 29 19:47:13 Yaniel, wait please Jun 29 19:47:24 kushal, and /Enter? Jun 29 19:47:30 Jun 29 19:47:35 ria, will do the same in this case Jun 29 19:48:18 ria, do a backward search and then try /Enter Jun 29 19:48:23 arpita, yes please Jun 29 19:48:54 kushal, if i press n after a string , like /the it becomes /then Jun 29 19:48:59 Jun 29 19:49:22 ria, first press Enter and n for the next search Jun 29 19:49:27 Yaniel, yes Jun 29 19:49:34 So now you are training to use vi? Jun 29 19:49:46 Yaniel, yes Jun 29 19:49:59 kart__, / and enter if pressed together is working.... Jun 29 19:50:04 Ok. In that case I try to follow. Jun 29 19:50:15 Yaniel, you are welcome :) Jun 29 19:50:21 ! Jun 29 19:50:24 Yaniel, your name please Jun 29 19:50:40 arpita, ok Jun 29 19:50:41 Real name? Jun 29 19:50:47 Yaniel, yes :) Jun 29 19:50:53 ria, yes please Jun 29 19:50:53 kart__, , / and enter if pressed together is working....should / and enter be pressed at the same time? Jun 29 19:51:06 Public or private message? Jun 29 19:51:07 kushal, tell me the way to use /Enter Jun 29 19:51:07 arpita, no type / and then press Enter Jun 29 19:51:13 kushal, n worked Jun 29 19:51:16 Yaniel, public Jun 29 19:51:17 Jun 29 19:51:26 ! Jun 29 19:51:27 OK. Jan Solanti Jun 29 19:51:35 ? Jun 29 19:51:45 ria, same , first do a search by /the , then type / press Enter Jun 29 19:51:52 samar, yes please Jun 29 19:51:54 kart__, yes that is also working ..taking to the next searched word... Jun 29 19:52:03 arpita: type, ku and press tab :) Jun 29 19:52:18 arpita, are you speaking with kart__ or kushal ? Jun 29 19:52:28 * kart__ is innocent Jun 29 19:52:29 kushal, you are flooded with queries... If you want i can help you out Jun 29 19:52:30 kushal, clear Jun 29 19:52:30 Jun 29 19:52:39 * Soumya has quit (Read error: 110 (Connection timed out)) Jun 29 19:52:44 samar, thanks Jun 29 19:52:54 kushal, what will ku tab do> Jun 29 19:52:58 ok so moving on Jun 29 19:53:00 arpita, try Jun 29 19:53:06 :D Jun 29 19:53:08 oops Jun 29 19:53:48 ok Jun 29 19:53:53 Search and replace Jun 29 19:54:19 :s/oldstring/newstring Jun 29 19:54:44 ^^ above will replace the first occurence of the oldstring to the newstring Jun 29 19:54:54 * occurrence Jun 29 19:55:35 to replace all occurrences of the oldstring to new string in that line Jun 29 19:55:40 :s/oldstring/newstring/g Jun 29 19:56:04 ! Jun 29 19:56:09 ! Jun 29 19:56:12 to replace in all lines Jun 29 19:56:13 ! Jun 29 19:56:20 :1,$s/oldstring/newstring/g Jun 29 19:56:24 ok Jun 29 19:56:27 mavu_, yes Jun 29 19:56:35 ! Jun 29 19:56:46 when i do s/old/new Jun 29 19:56:56 it highlights the pattern Jun 29 19:57:00 but says pattern not found Jun 29 19:57:07 and hence does not peplace Jun 29 19:57:15 replace* Jun 29 19:57:27 mavu_, its :s Jun 29 19:57:35 yea Jun 29 19:57:37 sorry for interrupting but Jun 29 19:57:38 i did the :s Jun 29 19:57:38 the same thing here Jun 29 19:57:52 ok Jun 29 19:57:52 same with mine as well Jun 29 19:58:08 kushal, but mine worked Jun 29 19:58:25 * chacha_chaudhry has quit (Read error: 110 (Connection timed out)) Jun 29 19:58:53 TanmayaT, please type here what you typed Jun 29 19:59:32 * roni (n=aritra@117.201.97.33) has joined #dgplug Jun 29 19:59:48 susenj, mavu_ anyone please Jun 29 20:00:03 :s/et/nee Jun 29 20:00:09 :s/mavu_/mavu Jun 29 20:00:14 it highlights Jun 29 20:00:20 mavu_ Jun 29 20:00:32 * TanmayaT has quit (Read error: 104 (Connection reset by peer)) Jun 29 20:00:34 but still says pattern not found : mavu_ Jun 29 20:00:42 highlighting et's but gives no pattern like "et" Jun 29 20:00:50 Jun 29 20:00:51 susenj, mavu_ are you in the same line ? Jun 29 20:01:30 susenj, mavu_ please stay in the same line and try it Jun 29 20:01:31 same line as in? Jun 29 20:01:46 mavu_, same line of the oldstring you want to replace Jun 29 20:01:47 when i do a : i am automatically brought to the last line Jun 29 20:01:51 ah Jun 29 20:01:52 okay Jun 29 20:02:13 anything else ? Jun 29 20:02:25 yes.. Jun 29 20:02:27 oh!itworks fine. Jun 29 20:02:29 Jun 29 20:02:36 please clarify the last command... Jun 29 20:02:52 * mobilesuit has quit (Read error: 110 (Connection timed out)) Jun 29 20:02:56 to replace in all lines... Jun 29 20:03:07 * chacha_chaudhry_ has quit (Read error: 110 (Connection timed out)) Jun 29 20:03:11 * partha_ has quit (Read error: 110 (Connection timed out)) Jun 29 20:03:20 * TanmayaT (n=sktmeenu@59.95.209.62) has joined #dgplug Jun 29 20:03:26 it works now :) thanks Jun 29 20:03:28 eof Jun 29 20:03:38 ecntrk, like if you want to replace a string in all lines of a file Jun 29 20:03:45 :1,$s/oldstring/newstring/g Jun 29 20:03:51 no I got that.. but the syntax.. Jun 29 20:03:53 ! Jun 29 20:04:06 :1,$ first Jun 29 20:04:08 :1,$s/oldstring/newstring/g Jun 29 20:04:08 * Amit (n=chatzill@118.95.34.246) has joined #dgplug Jun 29 20:04:10 oh.. so : then 1 then a , Jun 29 20:04:19 ecntrk, then $ Jun 29 20:04:20 I got that. Jun 29 20:04:31 yes.. cool.. got that.. Jun 29 20:04:32 ecntrk, 1,$ means first to last line Jun 29 20:04:35 susenj, Jun 29 20:04:41 oh... Jun 29 20:04:46 * Amit has quit (Client Quit) Jun 29 20:04:50 just for curiosity,why 1 is being used here.any special significance? Jun 29 20:05:01 so in vi we denote last line as $ Jun 29 20:05:03 ? Jun 29 20:05:24 1 for first line and $ for last line... Jun 29 20:05:32 am I correct? Jun 29 20:05:33 oh,you answered already!thanks kushal! Jun 29 20:05:39 ecntrk, for searching yes Jun 29 20:05:39 Jun 29 20:05:45 ok.. Jun 29 20:05:46 for the same you can even do Jun 29 20:05:52 :%s/oldstring/newstring/g Jun 29 20:06:09 and what % meaning here? Jun 29 20:06:14 all the lines? Jun 29 20:06:28 yes Jun 29 20:06:33 ok... Jun 29 20:06:45 it did Jun 29 20:06:49 Now may want to confirm if you want to replace or not Jun 29 20:07:03 :%s/oldstring/newstring/gc --- note the last c Jun 29 20:07:03 susenj, characters like ^ and $ have special meaning as something called as regular expressions Jun 29 20:07:21 press y to change or enter if you don't want to Jun 29 20:07:28 here c means confirm? Jun 29 20:07:39 * Prakhar (n=prakhar@122.163.71.193) has joined #dgplug Jun 29 20:07:40 ecntrk, yes Jun 29 20:08:23 l means what? Jun 29 20:08:31 Jun 29 20:08:37 1st line... Jun 29 20:08:54 ok moving on Jun 29 20:09:04 Kushalda... one more thing Jun 29 20:09:16 What's regular expression in unix? Jun 29 20:09:22 ! Jun 29 20:09:37 we only hear about them in Compiler Designing and Automata... Jun 29 20:10:06 ecntrk, we will talk about them later after class Jun 29 20:10:07 ! Jun 29 20:10:13 sure... Jun 29 20:10:17 Jun 29 20:10:20 Kishan, yes Jun 29 20:10:25 what if you want to change only the last line?? Jun 29 20:10:45 ! Jun 29 20:10:45 Kishan, go to last line Jun 29 20:10:52 Kishan, then :s/old/new/g Jun 29 20:10:57 ria, yes Jun 29 20:11:16 kushal, what does ^Y and ^E mean? Jun 29 20:11:22 in the options? Jun 29 20:11:27 Jun 29 20:11:28 ria, no idea, I never spoke about them Jun 29 20:11:46 arpita, yes Jun 29 20:11:57 kushal, they are in the options y/n/l/q/^Y etc. etc. Jun 29 20:12:01 Jun 29 20:12:56 kushal, and i could do nothing with them after trying Jun 29 20:13:23 ria, if you want to experiment , do it by yourself , don't talk here Jun 29 20:13:44 arpita, anything ? Jun 29 20:13:49 kushal, what do ^Y,^E ,a and q mean? Jun 29 20:13:51 kushal, i was just querying as i did not get any result Jun 29 20:14:07 arpita, q for quiting Jun 29 20:14:21 arpita, ria if you want to *DO EXPERIMENT*, do it at home, not here Jun 29 20:14:25 moving on Jun 29 20:14:25 a to abort,as i think Jun 29 20:14:49 to open more than one file in vi Jun 29 20:14:59 vi file1 file2 file3 Jun 29 20:15:09 now it will show only the first file Jun 29 20:15:16 to go to the next file Jun 29 20:15:18 :n Jun 29 20:15:20 and so on Jun 29 20:15:27 to go to the last file Jun 29 20:15:29 :last Jun 29 20:15:38 to go back to the first file Jun 29 20:15:43 :rew Jun 29 20:16:09 and if you want to see all argument name Jun 29 20:16:11 names Jun 29 20:16:13 :args Jun 29 20:16:18 try them please Jun 29 20:16:31 ! Jun 29 20:16:34 kushal, tried Jun 29 20:16:38 ! Jun 29 20:16:39 ecntrk, yes please Jun 29 20:16:51 * Subhodip (n=subhodip@125.20.11.34) has joined #dgplug Jun 29 20:17:04 what should i do if i want to go back previous file? Jun 29 20:17:18 kushal, same question Jun 29 20:17:31 like.. if i'm in 4th file, what's the command to lookup 3rd? Jun 29 20:17:41 ecntrk, not being told yet :) Jun 29 20:17:45 Ctrl + ^ Jun 29 20:17:53 * susenj (n=chatzill@59.178.175.199) has left #dgplug Jun 29 20:17:55 Ok ok... sorry...for bothering...:( Jun 29 20:18:01 ah.. I see... Jun 29 20:18:11 and another thing... Jun 29 20:18:22 ecntrk, can not see any eof from you Jun 29 20:18:30 is there anything like cascading file window... Jun 29 20:18:52 ecntrk, there is something called google.com use it please Jun 29 20:18:55 Sorry.. but..this is my 1st irc session... means what? Jun 29 20:19:05 * Guest70348 (n=root@59.178.175.199) has joined #dgplug Jun 29 20:19:12 ecntrk, RTFM please Jun 29 20:19:13 ok.. sure... Jun 29 20:19:19 ecntrk, to tell that you are finished Jun 29 20:19:20 sure.. Jun 29 20:19:32 then...:D Jun 29 20:20:13 Now many times we need to open more than one file same time Jun 29 20:20:25 for that you can split your window Jun 29 20:20:39 * coolpyro (n=chatzill@202.63.119.36) has left #dgplug Jun 29 20:21:01 * Guest70348 is now known as root Jun 29 20:21:02 :split for horizontal split Jun 29 20:21:28 :vsplit for vertical split Jun 29 20:21:30 * root is now known as Guest3732 Jun 29 20:21:32 * Yaniel (n=yaniel@dsl-trebrasgw1-ff44c100-223.dhcp.inet.fi) has left #dgplug Jun 29 20:21:41 * pushkal has quit ("ChatZilla 0.9.83 [Firefox 2.0.0.14/2008040413]") Jun 29 20:22:07 to move in between the frames, Ctrl + w Jun 29 20:22:20 ! Jun 29 20:22:38 samar, yes please Jun 29 20:22:58 vsplit doesn't work always! Don we need to install something more? Jun 29 20:23:13 kushal, r/Don/do Jun 29 20:23:25 Jun 29 20:23:37 samar, for standard fedora installation it works, others please check your distro documentation Jun 29 20:23:48 * deepakBCREC (n=chatzill@125.20.11.34) has joined #DGPLUG Jun 29 20:23:52 ! Jun 29 20:24:00 ria, yes please Jun 29 20:24:00 ! Jun 29 20:24:10 ! Jun 29 20:24:17 kushal, i find the same file splited Jun 29 20:24:27 ria, yes Jun 29 20:24:36 ria, wait I will tell more Jun 29 20:24:39 ecntrk, yes Jun 29 20:24:54 what is r/Don/do? Jun 29 20:24:56 kushal, but will this be done after opening 2 files? Jun 29 20:25:08 * susenj (n=chatzill@59.178.175.199) has joined #dgplug Jun 29 20:25:10 ,eof. Jun 29 20:25:11 ria, wait please Jun 29 20:25:13 Jun 29 20:25:21 ecntrk, actually that was wrong Jun 29 20:25:38 ecntrk, in IRC, if we type anything wrong , we replace it Jun 29 20:25:41 like in vi Jun 29 20:25:47 s/Don/Do Jun 29 20:25:56 ecntrk, ^^ that is a standard we follow Jun 29 20:25:57 :) Jun 29 20:26:04 Ok...:) Jun 29 20:26:08 Jun 29 20:26:31 roni, yes please Jun 29 20:26:34 kushal, same as asked by ria di Jun 29 20:26:39 roni, ok Jun 29 20:26:42 move on Jun 29 20:26:55 ok now to open a file Jun 29 20:27:00 :e filename Jun 29 20:27:10 so in every frame to open another file Jun 29 20:27:16 do :e newfilename Jun 29 20:27:24 you can use TAB also Jun 29 20:28:14 To use any shell command in vi Jun 29 20:28:17 :!command Jun 29 20:28:20 like Jun 29 20:28:28 :!ls Jun 29 20:28:56 * chacha_chaudhry (n=dev@gnu-india/supporter/rakeshpandit) has joined #dgplug Jun 29 20:29:41 ! Jun 29 20:29:49 ecntrk, yes please Jun 29 20:29:58 * Guest3732 has quit (Remote closed the connection) Jun 29 20:30:12 does vi parses or executes the command from current screen? Jun 29 20:30:26 or it invokes any new shell window... Jun 29 20:30:32 ecntrk, try and see Jun 29 20:30:46 :) Jun 29 20:30:46 ok...i'll Jun 29 20:31:07 anyone any other question ? Jun 29 20:33:15 ! Jun 29 20:33:21 no questions perhaps kushal can we move on? Jun 29 20:33:22 samar, yes please Jun 29 20:33:44 Ctrl + ^ browse only between last 2 open files? Jun 29 20:33:54 samar, yes Jun 29 20:33:59 say if i open 1.c 2.c 3.c Jun 29 20:34:04 ok Jun 29 20:34:06 Jun 29 20:34:08 ! Jun 29 20:34:14 1 more question Jun 29 20:34:20 yes Jun 29 20:34:29 Is there any option to browse all open files? Jun 29 20:34:33 Jun 29 20:34:39 :n Jun 29 20:34:40 :n Jun 29 20:34:51 ! Jun 29 20:34:56 and proper use of :rew and :last Jun 29 20:35:05 ria, yes please Jun 29 20:35:23 kushal, please say about spliting different files Jun 29 20:35:37 Jun 29 20:35:39 ^^^^^^^^^^ Jun 29 20:35:49 ria, splitting happens for frame not for files Jun 29 20:36:09 kushal, what is the use of spliting the same file? Jun 29 20:36:12 Jun 29 20:36:14 ria, you have to open different file in different frame Jun 29 20:36:32 ria, no splitting of file Jun 29 20:36:39 ria, only frames Jun 29 20:36:50 kushal, what is its use? Jun 29 20:36:55 Jun 29 20:37:19 ria, to open different files in the different frames Jun 29 20:37:36 kushal, but how to do that? Jun 29 20:37:40 Jun 29 20:38:21 * coolpyro_rishi (n=chatzill@202.63.119.36) has joined #dgplug Jun 29 20:38:28 ria,in the same window,you have many frames,and you can open files in those frames by the commands kushal just told! Jun 29 20:38:29 kushal:different frame means different console Jun 29 20:38:41 ria, go to the other frames and open files there by using :e Jun 29 20:38:50 Debashree, no Jun 29 20:38:53 oops Jun 29 20:38:54 kushal, ok Jun 29 20:38:56 deepakBCREC, no Jun 29 20:39:16 kushal:then Jun 29 20:39:30 deepakBCREC, try , you can see it with your own eyes Jun 29 20:39:51 different frames in same console,deepak Jun 29 20:39:56 kushal, got it , everything clear Jun 29 20:40:36 kushal:like we open another window through TAB Jun 29 20:40:45 deepakBCREC, try and see Jun 29 20:41:26 kushal, sorry for interruption, but will anything more be taught now? Jun 29 20:41:43 ria, no idea Jun 29 20:42:25 kushal:where i could get all what you taught today? Jun 29 20:42:34 deepakBCREC, see the logs later Jun 29 20:42:41 ! Jun 29 20:42:45 !topic Jun 29 20:42:49 deepakBCREC, and please type ! and wait for your turn to speal Jun 29 20:42:53 *speak Jun 29 20:42:58 samar, yes please Jun 29 20:43:01 kushal:ok Jun 29 20:43:11 kushal, how to do copy-paste a set of vertical lines in vim? Jun 29 20:43:14 Jun 29 20:43:35 ! Jun 29 20:44:02 * ria has quit ("Leaving") Jun 29 20:44:03 samar, RTFM Jun 29 20:44:08 ecntrk, yes please Jun 29 20:44:25 do we have Vertical lines also? Jun 29 20:44:29 Jun 29 20:44:41 * Tanmaya1 (n=sktmeenu@59.95.208.17) has joined #dgplug Jun 29 20:44:56 ecntrk, yes, type a single character in everyline Jun 29 20:45:08 ok Jun 29 20:45:17 anything else ? Jun 29 20:45:29 not for me... Jun 29 20:45:40 * debayan (n=debayan@117.198.32.228) has joined #dgplug Jun 29 20:45:42 now last thing for tonight Jun 29 20:45:49 Word completion Jun 29 20:46:12 In insert mode press Ctrl + p or Ctrl + n to do word completion Jun 29 20:46:43 try and see by yourself Jun 29 20:47:04 ! Jun 29 20:47:10 ! Jun 29 20:47:17 samar, yes Jun 29 20:47:39 one more thing (i believe it is interesting also) about key mapping in vim Jun 29 20:47:50 samar, yes, do RTFM for that Jun 29 20:48:05 kushal, RTFM?? Jun 29 20:48:15 samar, google RTFM Jun 29 20:48:31 Jun 29 20:48:44 ecntrk, yes please Jun 29 20:49:01 i 'll try this later.. but for now,.. what is modes? Jun 29 20:49:16 I'm in windoze now..:( Jun 29 20:49:19 Jun 29 20:49:19 ecntrk, read yesterday's log first Jun 29 20:49:36 sure... i'll.. Jun 29 20:49:50 ! Jun 29 20:49:54 o, before ending , one small magic Jun 29 20:49:55 * partha__ has quit (Read error: 60 (Operation timed out)) Jun 29 20:50:19 word abbreviation Jun 29 20:50:25 * kart__ has quit (Read error: 110 (Connection timed out)) Jun 29 20:50:40 :ab abbr phrase Jun 29 20:50:42 like Jun 29 20:51:21 :ab fosla Frustrated One Sided Lover's Association Jun 29 20:51:24 now type Jun 29 20:51:25 Prakhar, hi!!!!! Jun 29 20:51:40 fosla and spacebar Jun 29 20:52:01 * Tanmaya1 (n=sktmeenu@59.95.208.17) has left #dgplug Jun 29 20:52:21 arpita, suddenly ? on high ? Jun 29 20:52:53 !?? Jun 29 20:52:57 * Jun 29 20:53:08 * debayan has quit (Read error: 113 (No route to host)) Jun 29 20:53:35 to remove abbreviation Jun 29 20:53:43 :unabb abbr Jun 29 20:53:50 :unab abbr Jun 29 20:53:52 like Jun 29 20:53:59 :unab fosla Jun 29 20:54:09 kushal,arpi is not there,i am her's brother speaking Jun 29 20:54:28 * kushal removes voice from arpita Jun 29 20:54:34 arpita, be happy Jun 29 20:54:44 * amrita (n=amrita@117.201.97.190) has joined #dgplug Jun 29 20:54:53 ! Jun 29 20:54:54 * kushal gives channel operator status to indradg Jun 29 20:55:00 susenj, yes Jun 29 20:55:00 ! Jun 29 20:55:02 ! Jun 29 20:55:13 i m not getting abbriviation Jun 29 20:55:21 please define it Jun 29 20:55:51 susenj, see dictionary for *abbreviation* Jun 29 20:56:39 ecntrk, yes Jun 29 20:58:01 anything more teaching? Jun 29 20:58:05 Jun 29 20:58:11 roni, yes Jun 29 20:58:18 can u please clear the word abbreviation trick, once more, am not getting it? i just typed :ab fosla it said no abbreviation found Jun 29 20:58:22 ! Jun 29 20:58:34 clear the syntax part Jun 29 20:58:43 roni, type the whole command as I gave Jun 29 20:58:47 roni... abbreviation means small form of a big string... Jun 29 20:59:01 ok am trying Jun 29 20:59:04 like IIT : Indian Institute of Technology... Jun 29 20:59:21 working Jun 29 20:59:27 move on Jun 29 20:59:30 yes i m trying but result is no abbriviation is found! Jun 29 20:59:31 You have to enter the specified abbr before working it.. Jun 29 20:59:46 Jun 29 20:59:52 * deepakBCREC_ (n=chatzill@125.20.11.34) has joined #DGPLUG Jun 29 21:00:19 ! kushalda... anything more? Jun 29 21:00:25 ecntrk, no Jun 29 21:00:42 susenj, try what I typed Jun 29 21:00:54 ok Jun 29 21:01:02 but should abbreviation be user defined? Jun 29 21:01:08 susenj, yes Jun 29 21:01:08 ! I'm leaving now... Great session.. thanks a lot... Kushalda... Jun 29 21:01:25 * ecntrk has quit () Jun 29 21:01:27 where it should be defined? Jun 29 21:01:45 susenj, by the command I gave :) Jun 29 21:02:26 any more question ? Jun 29 21:03:00 <--CLASS OVER -->