comparison runtime/doc/usr_05.txt @ 18972:130acb903dbe

Update runtime files. Commit: https://github.com/vim/vim/commit/5666fcd0bd794dd46813824cce63a38bcae63794 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 26 14:35:26 2019 +0100 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Thu, 26 Dec 2019 14:45:08 +0100
parents ccd16426a1f9
children 1b345fb68ae3
comparison
equal deleted inserted replaced
18971:d73b1dd31464 18972:130acb903dbe
42 42
43 For Unix and Macintosh this file is always used and is recommended: 43 For Unix and Macintosh this file is always used and is recommended:
44 44
45 ~/.vimrc ~ 45 ~/.vimrc ~
46 46
47 For MS-DOS and MS-Windows you can use one of these: 47 For MS-Windows you can use one of these:
48 48
49 $HOME/_vimrc ~ 49 $HOME/_vimrc ~
50 $VIM/_vimrc ~ 50 $VIM/_vimrc ~
51 51
52 If you are creating the vimrc file for the first time, it is recommended to 52 If you are creating the vimrc file for the first time, it is recommended to
474 Unix ~/.vim/plugin/ 474 Unix ~/.vim/plugin/
475 PC $HOME/vimfiles/plugin or $VIM/vimfiles/plugin 475 PC $HOME/vimfiles/plugin or $VIM/vimfiles/plugin
476 Amiga s:vimfiles/plugin 476 Amiga s:vimfiles/plugin
477 Macintosh $VIM:vimfiles:plugin 477 Macintosh $VIM:vimfiles:plugin
478 Mac OS X ~/.vim/plugin/ 478 Mac OS X ~/.vim/plugin/
479 RISC-OS Choices:vimfiles.plugin
480 479
481 Example for Unix (assuming you didn't have a plugin directory yet): > 480 Example for Unix (assuming you didn't have a plugin directory yet): >
482 481
483 mkdir ~/.vim 482 mkdir ~/.vim
484 mkdir ~/.vim/plugin 483 mkdir ~/.vim/plugin
533 532
534 The underscore is used to separate the name of the filetype from the rest, 533 The underscore is used to separate the name of the filetype from the rest,
535 which can be anything. If you use "otherstuff.vim" it wouldn't work, it would 534 which can be anything. If you use "otherstuff.vim" it wouldn't work, it would
536 be loaded for the "otherstuff" filetype. 535 be loaded for the "otherstuff" filetype.
537 536
538 On MS-DOS you cannot use long filenames. You would run into trouble if you 537 On MS-DOS like filesystems you cannot use long filenames. You would run into
539 add a second plugin and the filetype has more than six characters. You can 538 trouble if you add a second plugin and the filetype has more than six
540 use an extra directory to get around this: > 539 characters. You can use an extra directory to get around this: >
541 540
542 mkdir $VIM/vimfiles/ftplugin/fortran 541 mkdir $VIM/vimfiles/ftplugin/fortran
543 copy thefile $VIM/vimfiles/ftplugin/fortran/too.vim 542 copy thefile $VIM/vimfiles/ftplugin/fortran/too.vim
544 543
545 The generic names for the filetype plugins are: > 544 The generic names for the filetype plugins are: >
584 583
585 :!mkdir ~/.vim 584 :!mkdir ~/.vim
586 :!mkdir ~/.vim/plugin 585 :!mkdir ~/.vim/plugin
587 :!cp /tmp/doit.vim ~/.vim/plugin 586 :!cp /tmp/doit.vim ~/.vim/plugin
588 587
589 The "cp" command is for Unix, on MS-DOS you can use "copy". 588 The "cp" command is for Unix, on MS-Windows you can use "copy".
590 589
591 Now create a "doc" directory in one of the directories in 'runtimepath'. > 590 Now create a "doc" directory in one of the directories in 'runtimepath'. >
592 591
593 :!mkdir ~/.vim/doc 592 :!mkdir ~/.vim/doc
594 593