Mercurial > vim
comparison runtime/doc/usr_01.txt @ 11666:5cd9ba96561d v8.0.0716
patch 8.0.0716: not easy to start Vim cleanly
commit https://github.com/vim/vim/commit/c4da113ef98dcfd6f2a088b1693c0317dcb5bf42
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 15 19:39:43 2017 +0200
patch 8.0.0716: not easy to start Vim cleanly
Problem: Not easy to start Vim cleanly without changing the viminfo file.
Not possible to know whether the -i command line flag was used.
Solution: Add the --clean command line argument. Add the 'viminfofile'
option. Add "-u DEFAULTS".
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 15 Jul 2017 19:45:03 +0200 |
parents | 9f48eab77d62 |
children | 1174611ad715 |
comparison
equal
deleted
inserted
replaced
11665:d7fe6dc88ea4 | 11666:5cd9ba96561d |
---|---|
1 *usr_01.txt* For Vim version 8.0. Last change: 2010 Nov 03 | 1 *usr_01.txt* For Vim version 8.0. Last change: 2017 Jul 15 |
2 | 2 |
3 VIM USER MANUAL - by Bram Moolenaar | 3 VIM USER MANUAL - by Bram Moolenaar |
4 | 4 |
5 About the manuals | 5 About the manuals |
6 | 6 |
138 | 138 |
139 On other systems, you have to do a little work: | 139 On other systems, you have to do a little work: |
140 | 140 |
141 1. Copy the tutor file. You can do this with Vim (it knows where to find it): | 141 1. Copy the tutor file. You can do this with Vim (it knows where to find it): |
142 > | 142 > |
143 vim -u NONE -c 'e $VIMRUNTIME/tutor/tutor' -c 'w! TUTORCOPY' -c 'q' | 143 vim --clean -c 'e $VIMRUNTIME/tutor/tutor' -c 'w! TUTORCOPY' -c 'q' |
144 < | 144 < |
145 This will write the file "TUTORCOPY" in the current directory. To use a | 145 This will write the file "TUTORCOPY" in the current directory. To use a |
146 translated version of the tutor, append the two-letter language code to the | 146 translated version of the tutor, append the two-letter language code to the |
147 filename. For French: | 147 filename. For French: |
148 > | 148 > |
149 vim -u NONE -c 'e $VIMRUNTIME/tutor/tutor.fr' -c 'w! TUTORCOPY' -c 'q' | 149 vim --clean -c 'e $VIMRUNTIME/tutor/tutor.fr' -c 'w! TUTORCOPY' -c 'q' |
150 < | 150 < |
151 2. Edit the copied file with Vim: | 151 2. Edit the copied file with Vim: |
152 > | 152 > |
153 vim -u NONE -c "set nocp" TUTORCOPY | 153 vim --clean TUTORCOPY |
154 < | 154 < |
155 The extra arguments make sure Vim is started in a good mood. | 155 The --clean argument makes sure Vim is started with nice defaults. |
156 | 156 |
157 3. Delete the copied file when you are finished with it: | 157 3. Delete the copied file when you are finished with it: |
158 > | 158 > |
159 del TUTORCOPY | 159 del TUTORCOPY |
160 < | 160 < |