home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-22 | 1.5 KB | 4 lines | [TEXT/VIM!] |
- " examples of .exrc settings that make Vim more useful for me.
- " use them if you want; skip them if you don't like them.
- "
- " set it so that return and minus move up and down a line without
- " insisting on moving to the start of the line. yes, i'm one of
- " those old-fashioned people who like space, backspace, -, and return
- " better than hjkl.
- "
- map
-
- map -
- "
- " do text wrapping on a control-Q. since it annoys me to have text
- " wrap automatically, but I want it to wrap when I give the command,
- " the macro sets the textwidth, wraps the current paragraph, then
- " sets it back to text wrap being off.
- "
- map :set textwidth=75
- {jQ}:set textwidth=0
-
- "
- " make it so that we can backspace beyond the start of the insertion
- " and beyond the current line
- "
- set backspace=2
- "
- " set the default font and size to monaco-9. it's already the
- " default, but this is supposed to be an illustration of how to
- " set it to something different.
- "
- set term=monaco
- set term=9
- "
- " similarly, set the window size to the standard size. you can use
- " whatever numbers you like.
- "
- set lines=25
- set columns=80
- "
- " set the tabs and shifts to something a bit less wide
- " than the standard 8-characters
- "
- set tabstop=4
- set shiftwidth=4
- "
- " keep me from accidentally hitting = when I meant -
- " = doesn't do anything useful in the mac version anyway.
- "
- map = -
- "
- " allow screen refreshes even while inserting
- "
- map! a
- "
- " make all the extended ASCII characters show up as themselves
- "
- set graphic
- "
- " get rid of the backup files. this is the most controversial
- " of the lot...
- "
- set nobackup
-