Tip #803: Saving a file
tip karma |
Rating -9/13, Viewed by 626
|
created: |
|
October 6, 2004 12:58 |
|
complexity: |
|
basic |
author: |
|
Anonymous |
|
as of Vim: |
|
6.0 |
In order to save a file you'll have to come out of the insert mode, commonly by hitting the Esc key.
Once you are up there to hit the Esc key, why not make it save the file too with a few more hits.
This can be done by simply adding the following line in the .vimrc file:
map <Esc><Esc> :w <CR>
Note: Mapping with a single Esc is somehow causing problems with the Up/Down/Left/Right arrow keys.
<<Specify what you do not want to have in a search and other helpful searches. |
Additional Notes
|