usr_01.txt 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. *usr_01.txt* Nvim
  2. VIM USER MANUAL - by Bram Moolenaar
  3. About the manuals
  4. This chapter introduces the manuals available with Vim. Read this to know the
  5. conditions under which the commands are explained.
  6. |01.1| Two manuals
  7. |01.2| Vim installed
  8. |01.3| Using the Vim tutor
  9. |01.4| Copyright
  10. Next chapter: |usr_02.txt| The first steps in Vim
  11. Table of contents: |usr_toc.txt|
  12. ==============================================================================
  13. *01.1* Two manuals
  14. The Vim documentation consists of two parts:
  15. 1. The User manual
  16. Task oriented explanations, from simple to complex. Reads from start to
  17. end like a book.
  18. 2. The Reference manual
  19. Precise description of how everything in Vim works.
  20. The notation used in these manuals is explained here: |notation|
  21. JUMPING AROUND
  22. The text contains hyperlinks between the two parts, allowing you to quickly
  23. jump between the description of an editing task and a precise explanation of
  24. the commands and options used for it. Use these two commands:
  25. Press CTRL-] to jump to a subject under the cursor.
  26. Press CTRL-O to jump back (repeat to go further back).
  27. Many links are in vertical bars, like this: |bars|. The bars themselves may
  28. be hidden or invisible; see below. An option name, like 'number', a command
  29. in double quotes like ":write" and any other word can also be used as a link.
  30. Try it out: Move the cursor to CTRL-] and press CTRL-] on it.
  31. Other subjects can be found with the ":help" command; see |help.txt|.
  32. The bars and stars are usually hidden with the |conceal| feature. They also
  33. use |hl-Ignore|, using the same color for the text as the background. You can
  34. make them visible with: >
  35. :set conceallevel=0
  36. :hi link HelpBar Normal
  37. :hi link HelpStar Normal
  38. ==============================================================================
  39. *01.2* Vim installed *setup-vimrc_example*
  40. To create an empty vimrc: >
  41. :call mkdir(stdpath('config'),'p')
  42. :exe 'edit' stdpath('config').'/init.vim'
  43. :write
  44. For more info see |vimrc|.
  45. ==============================================================================
  46. *01.3* Using the Vim tutor *tutor* *vimtutor*
  47. Instead of reading the text (boring!) you can use :Tutor to learn your first
  48. Vim commands. This is a 30-minute tutorial that teaches the most basic Vim
  49. functionality hands-on.
  50. To start the tutorial, execute >
  51. :Tutor
  52. <
  53. from within nvim. The tutorial will lead you from that point. Have fun!
  54. ==============================================================================
  55. *01.4* Copyright *manual-copyright*
  56. The Vim user manual and reference manual are Copyright (c) 1988-2003 by Bram
  57. Moolenaar. This material may be distributed only subject to the terms and
  58. conditions set forth in the Open Publication License, v1.0 or later. The
  59. latest version is presently available at:
  60. https://www.opencontent.org/openpub/
  61. People who contribute to the manuals must agree with the above copyright
  62. notice.
  63. *frombook*
  64. Parts of the user manual come from the book "Vi IMproved - Vim" by Steve
  65. Oualline (published by New Riders Publishing, ISBN: 0735710015). The Open
  66. Publication License applies to this book. Only selected parts are included
  67. and these have been modified (e.g., by removing the pictures, updating the
  68. text for Vim 6.0 and later, fixing mistakes). The omission of the |frombook|
  69. tag does not mean that the text does not come from the book.
  70. Many thanks to Steve Oualline and New Riders for creating this book and
  71. publishing it under the OPL! It has been a great help while writing the user
  72. manual. Not only by providing literal text, but also by setting the tone and
  73. style.
  74. If you make money through selling the manuals, you are strongly encouraged to
  75. donate part of the profit to help AIDS victims in Uganda. See |iccf|.
  76. ==============================================================================
  77. Next chapter: |usr_02.txt| The first steps in Vim
  78. Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl: