On Sat, Nov 7, 2009 at 09:48, narendra sisodiya <[email protected] > wrote:
> > On Fri, Nov 6, 2009 at 10:52 PM, Nagaraj N <[email protected]> > wrote: > > ppl using gvim (or vi or vim) would know the basics like copy-paste, > > searching, saving, etc.., here are some not-so-well-known stuff in vi / > gvim > > / vim (the following should work on all three....coz they are nto very > > different) > > > > 1. type " :! " (without the quotes) and then some command that is > normally > > executed in the terminal to execute that command while u are within vi. > > For ex. :!ls -------this will list the files in the > > current directory. > > This command could be useful when u are writing a program and want to do > a > > quick run. > > > > 2. press 'v' to enter 'visual mode' . in this mode u can select any > text(by > > using the arrow keys) and then copy it by pressing 'y' (but have to press > > escape key before that) > > > > 3. whenever text is copied using 'yy' , it is stored in the internal > buffer > > of gvim. But if u need to paste it outside gvim then do: ' "*yy ' > (without > > the single quotes but the double quotes at the beginning is there) and to > > paste : ' "*p ' > > > > 4. to go to the end of the file : 'gg' . to go to the beginning of the > file > > : ' G ' > 4.1 ) I use "shift + g" for end of line. > 5) Do anybody know, how vi can be used to programming purpose ?? like > auto indent, syntax highlight and so on, There are some setting file > which you need to copy paste in home directory for do it. > > > > > > > > regards, > > nagaraj > > > > > > On Fri, Nov 6, 2009 at 9:51 AM, narendra sisodiya > > <[email protected]> wrote: > >> > >> On Fri, Nov 6, 2009 at 8:17 PM, Parin Sharma <[email protected]> > >> wrote: > >> > > >> > On Mon, Sep 21, 2009 at 6:47 PM, narendra sisodiya > >> > <[email protected]> wrote: > >> >> > >> >> The purpose of this thread to reply back the cool and hidden feature > >> >> into your GNU box. These are some small but powerful trick and less > >> >> documented. > >> >> Here is my list - Will update regularly this thread. > >> >> > >> >> *1* Mouse over Music play : May be some of you are unaware with mouse > >> >> over music play in Fedora 10+box. After installing code to default > player, > >> >> mouse over to any music file will be played back without opening any > media > >> >> player. > >> >> *2* Drag and Drop over zip : If you have a zip file and you want to > add > >> >> any file to it then just drag and drop it over .zip file. This happen > with > >> >> all archive(compressed) files - found in Fedora 11 > >> >> *3* Alt + F2 : This will open run prompt - very useful sometimes. > >> >> *4* Paste in gedit : Sometime you need to run application from > command > >> >> line but we do not know the executable name. for example - "System > Monitor" > >> >> in menu. Just opne gedit, click on menu and drag and drop the icon of > >> >> "System monitor" into gedit (text editor). you will find the > corresponding > >> >> .desktop file in gedit text editor. locate exec line - in this case > it > >> >> will be this. > >> >> Exec=gnome-system-monitor > >> >> So this is the command to launch "System Monitor" > >> >> > >> > > >> > Ctrl + Shift + n Make a New Folder > >> > > >> > Make a new folder anywhere in Linux it works for GNOME don't know > about > >> > KDE and XFCE............. > >> > A simple trick which has been copied by M$ in Windows > 7................ > >> >> > >> >> PS: keep this thread alive ! > >> I think we can transfer the thread content to wiki (cc-by-sa) and mail > to > >> LFY. > >> > >> > > > > > > > > > > > > > -- > ┌─────────────────────────┐ > │ Narendra Sisodiya ( नरेन्द्र सिसोदिया ) > │ Web : http://narendra.techfandu.org > │ Twitter : http://tinyurl.com/dz7e4a > └─────────────────────────┘ > > --~--~---------~--~----~------------~-------~--~----~ > Do you have another question? Click here - > http://groups.google.com/group/iitdlug/post > Read archive - http://www.mail-archive.com/[email protected]/ > l...@iitd community mailing list -- http://groups.google.com/group/iitdlug > -~----------~----~----~----~------~----~------~--~--- > > Complete vi quick reference: http://www.tuxfiles.org/linuxhelp/vimcheat.html -- __Sudarsan Sridhar -- Do you have another question? Click here - http://groups.google.com/group/iitdlug/post Read archive - http://www.mail-archive.com/[email protected]/ l...@iitd community mailing list -- http://groups.google.com/group/iitdlug
