Re: [Ilugc] the vi editor
On Thu, 2012-06-21 at 09:32 +0530, Girish Venkatachalam wrote: Of course I am talking about real UNIX which nobody in LUG seems to know. only you know this? Why would anyone in the LUG want to know this? As pointed out to you, this is a LUG not a UUG. If you want to spout opinions like this I suggest you go join a UUG. And if Indian ways of doing things do not suit you, you are always free to migrate. -- regards Kenneth Gonsalves ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] the vi editor
On Thu, Jun 21, 2012 at 9:32 AM, Girish Venkatachalam girishvenkatacha...@gmail.com wrote: Of course I am talking about real UNIX which nobody in LUG seems to know. Yup and you showed how much you know about Unix in your history of Unix posting. They only know Ubuntu, Redhat or Suse or some commercial Linux meant for beginners. What is wrong with that? Did you become an Unix or openBSD guru overnight? -- Arun Khan ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] the vi editor
On Thursday 21 June 2012 06:26 PM, kenneth gonsalves wrote: If you want to spout opinions like this I suggest you go join a UUG. consider blogging if needed give a link here. ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] the vi editor
On Thu, Jun 21, 2012 at 7:40 PM, ஆமாச்சு ama...@amachu.net wrote: On Thursday 21 June 2012 06:26 PM, kenneth gonsalves wrote: If you want to spout opinions like this I suggest you go join a UUG. consider blogging if needed give a link here. +1 ,opinions are currency just like any other form of expression in groups like this or in real life , one can express it at will or when asked for . Opinions once expressed on once space like Blog, Facebook are either abhorred or liked just in the same way what is happening here , but with Blog you are responsible for your own opinion and giving the visitor the space to express his . Think as a book writer what is the use of it if he writes something and he only reads it he too needs critiques and accolades ..same goes with the Film makers , Song writers . My expression of opinion here again may or may not have value to few hundred people on this list , but once i start expressing my views on a Blog 1) I am responsible for what i write and say . 2) Ready for feedback and critiques , correction in some cases , improve my writing. 3) Get world audience and be a Rock Star :-) , if i write well. -Satya fossevents.in ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] the vi editor
On Thu, Jun 21, 2012 at 9:17 PM, Arun Khan knu...@gmail.com wrote: On Thu, Jun 21, 2012 at 9:32 AM, Girish Venkatachalam girishvenkatacha...@gmail.com wrote: Of course I am talking about real UNIX which nobody in LUG seems to know. Yup and you showed how much you know about Unix in your history of Unix posting. They only know Ubuntu, Redhat or Suse or some commercial Linux meant for beginners. What is wrong with that? Did you become an Unix or openBSD guru overnight? Earlier he used to unabashedly claim he is a cryptography expert until prof Kapil exposed his ignorance! Now its Unix. Wonder what it will be next :-) ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] the vi editor
Hi, On Wed, Jun 13, 2012 at 5:16 PM, Girish Venkatachalam girishvenkatacha...@gmail.com wrote: If you want to read the output of ifconfig, then : r !ifconfig Now you can also read files. :r /etc/passwd You can format the file and indent the loops and conditions by selecting the region and pressing = I like the above 3 tips, which I never knew before. Thanks for Sharing. Note: I've been using Vim for 2+ years as my main Editor. -- Thanks, Vanniarajan ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] the vi editor
Greetings, On Wed, Jun 13, 2012 at 6:14 PM, Tushar Rishabadas tushar.rishaba...@gmail.com wrote: On 13 Jun 2012 17:17, Girish Venkatachalam girishvenkatacha...@gmail.com wrote: IIRC ubuntu's default editor is gedit and it is one of the more popular gnu/linux distros. In any case why would knowledge of usage of text editor = to knowledge of an os? I only hope that you are joking and that intent was lost over the interwebs. It seems you have not worked on servers which boot up to init 3 only... -- Regards, Rajagopal ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] the vi editor
On Thu, 2012-06-21 at 00:18 +0530, Rajagopal Swaminathan wrote: IIRC ubuntu's default editor is gedit and it is one of the more popular gnu/linux distros. In any case why would knowledge of usage of text editor = to knowledge of an os? I only hope that you are joking and that intent was lost over the interwebs. It seems you have not worked on servers which boot up to init 3 only... joe is there - so is nano -- regards Kenneth Gonsalves ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] the vi editor
On 13 June 2012 17:16, Girish Venkatachalam girishvenkatacha...@gmail.com wrote: I am going to talk only about advanced use. I am thinking that most of you will know how to use vi by now. Otherwise you dunno Linux anyway. ;) Agree that you create some awareness and spike some interest in the mailing list with your tutorial styled emails but gross generalizations like above would only lead to flame wars . There are many emacs/nano or some other editor users who use GNU/Linux . It is all about choices and by putting forward your specific taste as the standard wont give a nice impression among the community . PS: I am a vim user ! Regards, Pavithran -- pavithran sakamuri http://look-pavi.blogspot.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] the vi editor
It seems you have not worked on servers which boot up to init 3 only... joe is there - so is nano -- The vi editor is a very distinct part of UNIX ideology. It cannot be avoided if you are a serious hacker. Several low level utilities use vi. Of course there is ed which is even more low level. vipw, crontab -e all use vi You simply cannot escape it. Of course I am talking about real UNIX which nobody in LUG seems to know. They only know Ubuntu, Redhat or Suse or some commercial Linux meant for beginners. -Girish -- Gayatri Hitech http://gayatri-hitech.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] the vi editor
joe is there - so is nano -- The vi editor is a very distinct part of UNIX ideology. However it may be, every editor (or software) has it merits and demerits. Haven't heard of joe or nano before, seems like a good time to try it. It is interesting, I neither knew, joe has been available since 1988, nor did I know, nano comes preinstalled on my fedora. You simply cannot escape it. Of course I am talking about real UNIX which nobody in LUG seems to know. They only know Ubuntu, Redhat or Suse or some commercial Linux meant for beginners. Again, please stop generalizing your opinions. You are not the only person in the list who knows real UNIX, as you term it. -- 0 ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] the vi editor
Hi, On Thu, Jun 21, 2012 at 9:32 AM, Girish Venkatachalam girishvenkatacha...@gmail.com wrote: vipw, crontab -e all use vi Not really. They use what evey $EDITOR is set to. They only know Ubuntu, Redhat or Suse or some commercial Linux meant for beginners. I am not trying to flame. But there are a lot of servers that run Debian. And it is quite stable. So are some other distros. But I haven't used others. Thanks -- Thank you Balachandran Sivakumar Arise Awake and stop not till the goal is reached. - Swami Vivekananda Mail: benignb...@gmail.com Blog: http://benignbala.wordpress.com/ ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] the vi editor
By Vi, most people mean vim though nvi and vim are different from vi. Anyway let us talk about vi the same way we talk about vim. I am going to talk only about advanced use. I am thinking that most of you will know how to use vi by now. Otherwise you dunno Linux anyway. ;) Okay how to do simple things that are really cool with vi? $ vi foo.txt Now inside vi, the : mode is most interesting. Obviously this only works under command mode. If you want to read the output of ifconfig, then : r !ifconfig will get you or :r !/sbin/ifconfig The buffer gets filled with the output. You can also format a text file by wrapping at 72 characters in which vi acts as a filtering agent. : %!fmt -w 72 will do it. Here, % stands for the whole text file you are editing and !(bang) escapes to the shell invokes fmt -w 72 and spits back the result into the vi buffer. Now you can also read files. :r /etc/passwd will read the file contents into the buffer. You can flip the character case using the ~ (tilde) operator. Just move over the characters pressing it. You can format the file and indent the loops and conditions by selecting the region and pressing = This only works in vim. :%= Or if you want to use 'v' for selecting then ggvG= You can check the man page of a word by pressing K under the word. You can search and replace with :%s/search/replace/ Of course searching string is a pattern and replacement is a literal. -Girish -- Gayatri Hitech http://gayatri-hitech.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] the vi editor
I think you should add a disclaimer to all your mails, saying that the content should be taken as a rant and that the literal meaning shouldn't be taken as such. I hope my inline replies below justify that. On Wed, Jun 13, 2012 at 5:16 PM, Girish Venkatachalam girishvenkatacha...@gmail.com wrote: I am going to talk only about advanced use. I am thinking that most of you will know how to use vi by now. Otherwise you dunno Linux anyway. ;) Can you justify? Oh wait. You're right, if you use emacs, probably you know GNU/Linux, not Linux ;) Okay how to do simple things that are really cool with vi? You are contradicting with your previous statement I am going to talk only about advanced use. You can flip the character case using the ~ (tilde) operator. Just move over the characters pressing it. Is there no better way? In emacs you could change case of a selected region by C-x C-u for uppercase and C-x C-l for lowercase. To change case of just the following word, you can simply do M-u for uppercase, M-l for lowercase and M-c for camelcase. I'm not trying to prove emacs is superior, as I don't know much about vi. I'm just trying to understand vi. You can format the file and indent the loops and conditions by selecting the region and pressing = This only works in vim. Now you are dragging me into emacs-vi battle. You can do this same way in emacs by selecting region and pressing C-M-\ . Again I'm not saying emacs is superior (though it may be), but asking you to stop making such arbitrary statements. -- Vignesh Nandha Kumar http://vigneshnandhakumar.in ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] the vi editor
On 13 Jun 2012 17:17, Girish Venkatachalam girishvenkatacha...@gmail.com wrote: By Vi, most people mean vim though nvi and vim are different from vi. Anyway let us talk about vi the same way we talk about vim. I am going to talk only about advanced use. I am thinking that most of you will know how to use vi by now. Otherwise you dunno Linux anyway. ;) IIRC ubuntu's default editor is gedit and it is one of the more popular gnu/linux distros. In any case why would knowledge of usage of text editor = to knowledge of an os? I only hope that you are joking and that intent was lost over the interwebs. ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc