|
|
Subscribe / Log in / New account

redhat defaults

redhat defaults

Posted Aug 31, 2005 0:26 UTC (Wed) by ccyoung (guest, #16340)
In reply to: vim vs. (original) vi, not vs. older versions of vim. by tjc
Parent article: Vim's newest features (Linux.com)

I've always thought the RH defaults were pretty good, esp when compared to Suse or Ubuntu.

You're right, need to do the :ai for indentation.

But accidental user modes are annoying: Sometimes it decides to start word wrapping. F1, being clumsily close to '2' gets pressed way too much. And frequently I'm asked about encrypting the doc and have no idea how I got there. And sometimes I work half an hour while recording a macro. All of these mysteries and more for someone too lazy for manual labor.


to post comments

redhat defaults

Posted Aug 31, 2005 0:55 UTC (Wed) by bronson (subscriber, #4806) [Link] (4 responses)

Amen! Add this to your ~/.vimrc:
" F1 is too close to other keys.  Besides, help is :help.
map  <F1> <Nop>
map! <F1> <Nop>

How about Gnome's F1

Posted Aug 31, 2005 1:18 UTC (Wed) by kh (guest, #19413) [Link] (3 responses)

Any way to get Gnome terminal to ignore or capture F1??? (Or remap to the Esc key I meant to hit?)

How about Gnome's F1

Posted Aug 31, 2005 7:44 UTC (Wed) by philips (guest, #937) [Link] (1 responses)

Try xterm.

I have tried `God only knows how many` "better" xterms and in the end came back to basics - xterm itself. Other terminals are so much to graphics/GUI/bells/whistles/etc what makes them poor utilities. xterm just works and need very very few changes to configuration. Was at time first and only terminal to properly support UTF-8. Properly support reverse video. Has no GUI - so nothing stands in a way of job. And has most comprehensive text selection around.

man xterm - it is infinite source of knowledge, only comparable to vim's :help ;-)

xterm + bash + vim is what I use all the time.

P.S. Thou if you are on RH/Fedora Core, RedHat ships screwed xterm.ad. Replace it with standard one from XFree86/X.Org.

How about Gnome's F1

Posted Sep 1, 2005 18:17 UTC (Thu) by tjw.org (guest, #20716) [Link]

Has no GUI - so nothing stands in a way of job
Although users are unaware, xterm actually has a GUI of sorts. Hold down CTRL while clicking on any of the 3 mouse buttons on the xterm. Obviously it doesn't stand in the way, but it's there.

How about Gnome's F1

Posted Aug 31, 2005 9:11 UTC (Wed) by micampe (guest, #4384) [Link]

Edit -> Keyboard Shortcuts, scroll to bottom, select the "Help" row and hit back space. You might also want to uncheck the two checkboxes there for maximum effect.

redhat defaults

Posted Aug 31, 2005 1:12 UTC (Wed) by spiv (guest, #9031) [Link]

And sometimes I work half an hour while recording a macro.
Hit q. See :help recording.

Encrypting the document

Posted Aug 31, 2005 21:22 UTC (Wed) by peace (guest, #10016) [Link]

You got there by issuing ":X" while trying to quickly exit and save your document. You must learn to control your pinky.

(I do this all the time, and because I'm obviosly in a hurry, it's real annoying.)

Kind Regards


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds