comparison runtime/doc/usr_05.txt @ 1125:96cd8222a819

updated for version 7.1a
author vimboss
date Sat, 05 May 2007 18:24:42 +0000
parents 4bac29d27e2f
children a49d06539452
comparison
equal deleted inserted replaced
1124:da2a955f150a 1125:96cd8222a819
1 *usr_05.txt* For Vim version 7.0. Last change: 2006 Apr 24 1 *usr_05.txt* For Vim version 7.1a. Last change: 2006 Jul 10
2 2
3 VIM USER MANUAL - by Bram Moolenaar 3 VIM USER MANUAL - by Bram Moolenaar
4 4
5 Set your settings 5 Set your settings
6 6
200 But only for files that have been detected to be plain text. There are 200 But only for files that have been detected to be plain text. There are
201 actually two parts here. "autocmd FileType text" is an autocommand. This 201 actually two parts here. "autocmd FileType text" is an autocommand. This
202 defines that when the file type is set to "text" the following command is 202 defines that when the file type is set to "text" the following command is
203 automatically executed. "setlocal textwidth=78" sets the 'textwidth' option 203 automatically executed. "setlocal textwidth=78" sets the 'textwidth' option
204 to 78, but only locally in one file. 204 to 78, but only locally in one file.
205 > 205
206 206 *restore-cursor* >
207 autocmd BufReadPost * 207 autocmd BufReadPost *
208 \ if line("'\"") > 0 && line("'\"") <= line("$") | 208 \ if line("'\"") > 0 && line("'\"") <= line("$") |
209 \ exe "normal g`\"" | 209 \ exe "normal g`\"" |
210 \ endif 210 \ endif
211 211