代码拉取完成,页面将自动刷新
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>usr_01 - Vim Documentation</title>
<meta name="Generator" content="Vim/8.0">
<meta name="plugin-version" content="vim8.0">
<meta name="syntax" content="help">
<meta name="settings" content="no_pre,use_css,expand_tabs">
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="jquery.min.js" type="text/javascript"></script>
<script src="mark-current-page.js" type="text/javascript"></script>
</head>
<body>
<header>
<div class="header">
<a href="http://vim-jp.org/">vim-jp</a>
/ <a href="http://vim-jp.org/vimdoc-en/">vimdoc-en</a>
/ usr_01<br />
<a name="top"></a><h1>usr_01 - Vim Documentation</h1>
<a href="index.html">Return to main</a>
<span class="EnglishJapaneseLink">
<span class="CurrentLanguage">English</span>
</span>
</div>
</header>
<nav>
<dl>
<dt>BASIC</dt>
<dd><ul>
<li><a href="quickref.html">quickref</a></li>
<li><a href="sponsor.html">sponsor</a></li>
</ul></dd>
<dt>USER MANUAL</dt>
<dd><ul>
<li><a href="usr_toc.html">usr_toc</a></li>
</ul></dd>
<dt>Getting Started</dt>
<dd><ul>
<li><a href="usr_01.html">usr_01</a></li>
<li><a href="usr_02.html">usr_02</a></li>
<li><a href="usr_03.html">usr_03</a></li>
<li><a href="usr_04.html">usr_04</a></li>
<li><a href="usr_05.html">usr_05</a></li>
<li><a href="usr_06.html">usr_06</a></li>
<li><a href="usr_07.html">usr_07</a></li>
<li><a href="usr_08.html">usr_08</a></li>
<li><a href="usr_09.html">usr_09</a></li>
<li><a href="usr_10.html">usr_10</a></li>
<li><a href="usr_11.html">usr_11</a></li>
<li><a href="usr_12.html">usr_12</a></li>
</ul></dd>
<dt>Editing Effectively</dt>
<dd><ul>
<li><a href="usr_20.html">usr_20</a></li>
<li><a href="usr_21.html">usr_21</a></li>
<li><a href="usr_22.html">usr_22</a></li>
<li><a href="usr_23.html">usr_23</a></li>
<li><a href="usr_24.html">usr_24</a></li>
<li><a href="usr_25.html">usr_25</a></li>
<li><a href="usr_26.html">usr_26</a></li>
<li><a href="usr_27.html">usr_27</a></li>
<li><a href="usr_28.html">usr_28</a></li>
<li><a href="usr_29.html">usr_29</a></li>
<li><a href="usr_30.html">usr_30</a></li>
<li><a href="usr_31.html">usr_31</a></li>
<li><a href="usr_32.html">usr_32</a></li>
</ul></dd>
<dt>Tuning Vim</dt>
<dd><ul>
<li><a href="usr_40.html">usr_40</a></li>
<li><a href="usr_41.html">usr_41</a></li>
<li><a href="usr_42.html">usr_42</a></li>
<li><a href="usr_43.html">usr_43</a></li>
<li><a href="usr_44.html">usr_44</a></li>
<li><a href="usr_45.html">usr_45</a></li>
</ul></dd>
<dt>Making Vim Run</dt>
<dd><ul>
<li><a href="usr_90.html">usr_90</a></li>
</ul></dd>
<dt>General subjects</dt>
<dd><ul>
<li><a href="intro.html">intro</a></li>
<li><a href="index.html">help</a></li>
<li><a href="helphelp.html">helphelp</a></li>
<li><a href="vimindex.html">index</a></li>
<li><a href="tags.html">tags</a></li>
<li><a href="howto.html">howto</a></li>
<li><a href="tips.html">tips</a></li>
<li><a href="message.html">message</a></li>
<li><a href="quotes.html">quotes</a></li>
<li><a href="todo.html">todo</a></li>
<li><a href="debug.html">debug</a></li>
<li><a href="develop.html">develop</a></li>
<li><a href="uganda.html">uganda</a></li>
</ul></dd>
<dt>Basic editing</dt>
<dd><ul>
<li><a href="starting.html">starting</a></li>
<li><a href="editing.html">editing</a></li>
<li><a href="motion.html">motion</a></li>
<li><a href="scroll.html">scroll</a></li>
<li><a href="insert.html">insert</a></li>
<li><a href="change.html">change</a></li>
<li><a href="indent.html">indent</a></li>
<li><a href="undo.html">undo</a></li>
<li><a href="repeat.html">repeat</a></li>
<li><a href="visual.html">visual</a></li>
<li><a href="various.html">various</a></li>
<li><a href="recover.html">recover</a></li>
</ul></dd>
<dt>Advanced editing</dt>
<dd><ul>
<li><a href="cmdline.html">cmdline</a></li>
<li><a href="options.html">options</a></li>
<li><a href="pattern.html">pattern</a></li>
<li><a href="map.html">map</a></li>
<li><a href="tagsrch.html">tagsrch</a></li>
<li><a href="quickfix.html">quickfix</a></li>
<li><a href="windows.html">windows</a></li>
<li><a href="tabpage.html">tabpage</a></li>
<li><a href="syntax.html">syntax</a></li>
<li><a href="spell.html">spell</a></li>
<li><a href="diff.html">diff</a></li>
<li><a href="autocmd.html">autocmd</a></li>
<li><a href="filetype.html">filetype</a></li>
<li><a href="eval.html">eval</a></li>
<li><a href="channel.html">channel</a></li>
<li><a href="fold.html">fold</a></li>
</ul></dd>
<dt>Special issues</dt>
<dd><ul>
<li><a href="print.html">print</a></li>
<li><a href="remote.html">remote</a></li>
<li><a href="term.html">term</a></li>
<li><a href="digraph.html">digraph</a></li>
<li><a href="mbyte.html">mbyte</a></li>
<li><a href="mlang.html">mlang</a></li>
<li><a href="arabic.html">arabic</a></li>
<li><a href="farsi.html">farsi</a></li>
<li><a href="hebrew.html">hebrew</a></li>
<li><a href="russian.html">russian</a></li>
<li><a href="ft_ada.html">ft_ada</a></li>
<li><a href="ft_sql.html">ft_sql</a></li>
<li><a href="hangulin.html">hangulin</a></li>
<li><a href="rileft.html">rileft</a></li>
</ul></dd>
<dt>GUI</dt>
<dd><ul>
<li><a href="gui.html">gui</a></li>
<li><a href="gui_w32.html">gui_w32</a></li>
<li><a href="gui_x11.html">gui_x11</a></li>
</ul></dd>
<dt>Interfaces</dt>
<dd><ul>
<li><a href="if_cscop.html">if_cscop</a></li>
<li><a href="if_lua.html">if_lua</a></li>
<li><a href="if_mzsch.html">if_mzsch</a></li>
<li><a href="if_perl.html">if_perl</a></li>
<li><a href="if_pyth.html">if_pyth</a></li>
<li><a href="if_tcl.html">if_tcl</a></li>
<li><a href="if_ole.html">if_ole</a></li>
<li><a href="if_ruby.html">if_ruby</a></li>
<li><a href="debugger.html">debugger</a></li>
<li><a href="workshop.html">workshop</a></li>
<li><a href="netbeans.html">netbeans</a></li>
<li><a href="sign.html">sign</a></li>
</ul></dd>
<dt>Versions</dt>
<dd><ul>
<li><a href="vi_diff.html">vi_diff</a></li>
<li><a href="version4.html">version4</a></li>
<li><a href="version5.html">version5</a></li>
<li><a href="version6.html">version6</a></li>
<li><a href="version7.html">version7</a></li>
<li><a href="version8.html">version8</a></li>
</ul></dd>
<dt>Remarks about specific systems</dt>
<dd><ul>
<li><a href="os_390.html">os_390</a></li>
<li><a href="os_amiga.html">os_amiga</a></li>
<li><a href="os_beos.html">os_beos</a></li>
<li><a href="os_dos.html">os_dos</a></li>
<li><a href="os_mac.html">os_mac</a></li>
<li><a href="os_mint.html">os_mint</a></li>
<li><a href="os_msdos.html">os_msdos</a></li>
<li><a href="os_os2.html">os_os2</a></li>
<li><a href="os_qnx.html">os_qnx</a></li>
<li><a href="os_risc.html">os_risc</a></li>
<li><a href="os_unix.html">os_unix</a></li>
<li><a href="os_vms.html">os_vms</a></li>
<li><a href="os_win32.html">os_win32</a></li>
</ul></dd>
<dt>Standard plugins</dt>
<dd><ul>
<li><a href="pi_getscript.html">pi_getscript</a></li>
<li><a href="pi_gzip.html">pi_gzip</a></li>
<li><a href="pi_logipat.html">pi_logipat</a></li>
<li><a href="pi_netrw.html">pi_netrw</a></li>
<li><a href="pi_paren.html">pi_paren</a></li>
<li><a href="pi_tar.html">pi_tar</a></li>
<li><a href="pi_vimball.html">pi_vimball</a></li>
<li><a href="pi_zip.html">pi_zip</a></li>
</ul></dd>
<dt>Filetype plugins</dt>
<dd><ul>
<li><a href="pi_spec.html">pi_spec</a></li>
</ul></dd>
<dt>Others</dt>
<dd><ul>
<li><a href="vim_faq.html">vim_faq</a></li>
</ul></dd>
</dl>
</nav>
<article class="Vimdoc VimdocJa">
<div id='vimCodeElement'>
<a class="Constant" href="usr_01.html" name="usr_01.txt">usr_01.txt</a> For <span class="Identifier">Vim version 8.0.</span> Last change: 2017 Jul 15<br>
<br>
VIM USER MANUAL - by Bram Moolenaar<br>
<br>
About the manuals<br>
<br>
<br>
This chapter introduces the manuals available with Vim. Read this to know the<br>
conditions under which the commands are explained.<br>
<br>
<a class="Identifier" href="usr_01.html#01.1">01.1</a> Two manuals<br>
<a class="Identifier" href="usr_01.html#01.2">01.2</a> Vim installed<br>
<a class="Identifier" href="usr_01.html#01.3">01.3</a> Using the Vim tutor<br>
<a class="Identifier" href="usr_01.html#01.4">01.4</a> Copyright<br>
<br>
Next chapter: <a class="Identifier" href="usr_02.html">usr_02.txt</a> The first steps in Vim<br>
Table of contents: <a class="Identifier" href="usr_toc.html">usr_toc.txt</a><br>
<br>
<span class="PreProc">==============================================================================</span><br>
<a class="Constant" href="usr_01.html#01.1" name="01.1">01.1</a> Two manuals<br>
<br>
The Vim documentation consists of two parts:<br>
<br>
1. The User manual<br>
Task oriented explanations, from simple to complex. Reads from start to<br>
end like a book.<br>
<br>
2. The Reference manual<br>
Precise description of how everything in Vim works.<br>
<br>
The notation used in these manuals is explained here: <a class="Identifier" href="intro.html#notation">notation</a><br>
<br>
<br>
JUMPING AROUND<br>
<br>
The text contains hyperlinks between the two parts, allowing you to quickly<br>
jump between the description of an editing task and a precise explanation of<br>
the commands and options used for it. Use these two commands:<br>
<br>
Press <span class="Special">CTRL-]</span> to jump to a subject under the cursor.<br>
Press <span class="Special">CTRL-O</span> to jump back (repeat to go further back).<br>
<br>
Many links are in vertical bars, like this: <a class="Identifier" href="index.html#bars">bars</a>. The bars themselves may<br>
be hidden or invisible, see below. An option name, like <a class="Type" href="options.html#'number'">'number'</a>, a command<br>
in double quotes like ":write" and any other word can also be used as a link.<br>
Try it out: Move the cursor to <span class="Special">CTRL-]</span> and press <span class="Special">CTRL-]</span> on it.<br>
<br>
Other subjects can be found with the ":help" command, see <a class="Identifier" href="index.html">help.txt</a>.<br>
<br>
The bars and stars are usually hidden with the <a class="Identifier" href="syntax.html#conceal">conceal</a> feature. They also<br>
use <a class="Identifier" href="syntax.html#hl-Ignore">hl-Ignore</a>, using the same color for the text as the background. You can<br>
make them visible with:<br>
<div class="helpExample"> :set conceallevel=0<br>
:hi link HelpBar Normal<br>
:hi link HelpStar Normal</div>
<br>
<span class="PreProc">==============================================================================</span><br>
<a class="Constant" href="usr_01.html#01.2" name="01.2">01.2</a> Vim installed<br>
<br>
Most of the manuals assume that Vim has been properly installed. If you<br>
didn't do that yet, or if Vim doesn't run properly (e.g., files can't be found<br>
or in the GUI the menus do not show up) first read the chapter on<br>
installation: <a class="Identifier" href="usr_90.html">usr_90.txt</a>.<br>
<a class="Constant" href="usr_01.html#not-compatible" name="not-compatible">not-compatible</a><br>
The manuals often assume you are using Vim with Vi-compatibility switched<br>
off. For most commands this doesn't matter, but sometimes it is important,<br>
e.g., for multi-level undo. An easy way to make sure you are using a nice<br>
setup is to copy the example vimrc file. By doing this inside Vim you don't<br>
have to check out where it is located. How to do this depends on the system<br>
you are using:<br>
<br>
Unix:<br>
<div class="helpExample"> :!cp -i $VIMRUNTIME/vimrc_example.vim ~/.vimrc</div>
MS-DOS, MS-Windows, OS/2:<br>
<div class="helpExample"> :!copy $VIMRUNTIME/vimrc_example.vim $VIM/_vimrc</div>
Amiga:<br>
<div class="helpExample"> :!copy $VIMRUNTIME/vimrc_example.vim $VIM/.vimrc</div>
<br>
If the file already exists you probably want to keep it.<br>
<br>
If you start Vim now, the <a class="Type" href="options.html#'compatible'">'compatible'</a> option should be off. You can check it<br>
with this command:<br>
<br>
<div class="helpExample"> :set compatible?</div>
<br>
If it responds with "nocompatible" you are doing well. If the response is<br>
"compatible" you are in trouble. You will have to find out why the option is<br>
still set. Perhaps the file you wrote above is not found. Use this command<br>
to find out:<br>
<br>
<div class="helpExample"> :scriptnames</div>
<br>
If your file is not in the list, check its location and name. If it is in the<br>
list, there must be some other place where the <a class="Type" href="options.html#'compatible'">'compatible'</a> option is switched<br>
back on.<br>
<br>
For more info see <a class="Identifier" href="starting.html#vimrc">vimrc</a> and <a class="Identifier" href="starting.html#compatible-default">compatible-default</a>.<br>
<br>
<span class="Todo">Note</span>:<br>
This manual is about using Vim in the normal way. There is an<br>
alternative called "evim" (easy Vim). This is still Vim, but used in<br>
a way that resembles a click-and-type editor like Notepad. It always<br>
stays in Insert mode, thus it feels very different. It is not<br>
explained in the user manual, since it should be mostly self<br>
explanatory. See <a class="Identifier" href="starting.html#evim-keys">evim-keys</a> for details.<br>
<br>
<span class="PreProc">==============================================================================</span><br>
<a class="Constant" href="usr_01.html#01.3" name="01.3">01.3</a> Using the Vim tutor <a class="Constant" href="usr_01.html#tutor" name="tutor">tutor</a> <a class="Constant" href="usr_01.html#vimtutor" name="vimtutor">vimtutor</a><br>
<br>
Instead of reading the text (boring!) you can use the vimtutor to learn your<br>
first Vim commands. This is a 30 minute tutorial that teaches the most basic<br>
Vim functionality hands-on.<br>
<br>
On Unix, if Vim has been properly installed, you can start it from the shell:<br>
<br>
<div class="helpExample"> vimtutor</div>
<br>
On MS-Windows you can find it in the Program/Vim menu. Or execute<br>
vimtutor.bat in the $VIMRUNTIME directory.<br>
<br>
This will make a copy of the tutor file, so that you can edit it without<br>
the risk of damaging the original.<br>
There are a few translated versions of the tutor. To find out if yours is<br>
available, use the two-letter language code. For French:<br>
<br>
<div class="helpExample"> vimtutor fr</div>
<br>
On Unix, if you prefer using the GUI version of Vim, use "gvimtutor" or<br>
"vimtutor -g" instead of "vimtutor".<br>
<br>
For OpenVMS, if Vim has been properly installed, you can start vimtutor from a<br>
VMS prompt with:<br>
<br>
<div class="helpExample"> @VIM:vimtutor</div>
<br>
Optionally add the two-letter language code as above.<br>
<br>
<br>
On other systems, you have to do a little work:<br>
<br>
1. Copy the tutor file. You can do this with Vim (it knows where to find it):<br>
<br>
<div class="helpExample"> vim --clean -c 'e $VIMRUNTIME/tutor/tutor' -c 'w! TUTORCOPY' -c 'q'</div>
<br>
This will write the file "TUTORCOPY" in the current directory. To use a<br>
translated version of the tutor, append the two-letter language code to the<br>
filename. For French:<br>
<br>
<div class="helpExample"> vim --clean -c 'e $VIMRUNTIME/tutor/tutor.fr' -c 'w! TUTORCOPY' -c 'q'</div>
<br>
2. Edit the copied file with Vim:<br>
<br>
<div class="helpExample"> vim --clean TUTORCOPY</div>
<br>
The --clean argument makes sure Vim is started with nice defaults.<br>
<br>
3. Delete the copied file when you are finished with it:<br>
<br>
<div class="helpExample"> del TUTORCOPY</div>
<br>
<span class="PreProc">==============================================================================</span><br>
<a class="Constant" href="usr_01.html#01.4" name="01.4">01.4</a> Copyright <a class="Constant" href="usr_01.html#manual-copyright" name="manual-copyright">manual-copyright</a><br>
<br>
The Vim user manual and reference manual are Copyright (c) 1988-2003 by Bram<br>
Moolenaar. This material may be distributed only subject to the terms and<br>
conditions set forth in the Open Publication License, v1.0 or later. The<br>
latest version is presently available at:<br>
<span class="Constant"><a href="http://www.opencontent.org/openpub/">http://www.opencontent.org/openpub/</a></span><br>
<br>
People who contribute to the manuals must agree with the above copyright<br>
notice.<br>
<a class="Constant" href="usr_01.html#frombook" name="frombook">frombook</a><br>
Parts of the user manual come from the book "Vi IMproved - Vim" by Steve<br>
Oualline (published by New Riders Publishing, ISBN: 0735710015). The Open<br>
Publication License applies to this book. Only selected parts are included<br>
and these have been modified (e.g., by removing the pictures, updating the<br>
text for Vim 6.0 and later, fixing mistakes). The omission of the <a class="Identifier" href="usr_01.html#frombook">frombook</a><br>
tag does not mean that the text does not come from the book.<br>
<br>
Many thanks to Steve Oualline and New Riders for creating this book and<br>
publishing it under the OPL! It has been a great help while writing the user<br>
manual. Not only by providing literal text, but also by setting the tone and<br>
style.<br>
<br>
If you make money through selling the manuals, you are strongly encouraged to<br>
donate part of the profit to help AIDS victims in Uganda. See <a class="Identifier" href="uganda.html#iccf">iccf</a>.<br>
<br>
<span class="PreProc">==============================================================================</span><br>
<br>
Next chapter: <a class="Identifier" href="usr_02.html">usr_02.txt</a> The first steps in Vim<br>
<br>
Copyright: see <a class="Identifier" href="usr_01.html#manual-copyright">manual-copyright</a> vim:tw=78:ts=8:ft=help:norl:<br>
</div>
</article>
<footer>
<a href="#top">Return to the top</a> - <a href="index.html">Return to main</a>
<span class="EnglishJapaneseLink">
<span class="CurrentLanguage">English</span>
</span>
<br />
<div style="text-align:right;">
Hosted by <a href="https://github.com/vim-jp/vimdoc-en">vimdoc-en project</a><br />
If you met any problem, please report it to <a href="https://github.com/vim-jp/vimdoc-en/issues">issue</a>.<br />
</div>
</footer>
<!--<script src="js/check-referrer.js" type="text/javascript"></script>-->
</body>
</html>
<!-- vim:set ts=8 sts=2 sw=2 tw=0 et: -->
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。