File:NetBSD_6.1_vi_C_Hello_World.png · Wikimedia Commons · See Wikimedia Commons
program komputerowy do edycji tekstu
Key facts
- Developer
- Bill Joy
- Initial release
- 1976 ; 50 years ago ( 1976 )
- Written in
- C
- Operating system
- Unix , Unix-like
- Platform
- Cross-platform
- Type
- Text editor
- License
- BSD-4-Clause or CDDL
- Website
- ex-vi .sourceforge .net
- Repository
- ex-vi .cvs .sourceforge .net /ex-vi /ex-vi /
via Wikipedia infobox
Described at
This utility shall be provided on systems that both support the User Portability Utilities option and define the POSIX2 CHAR TERM symbol. On other systems it is optional. This reference page uses the term edit buffer to describe the current working text. No specific implementation is implied by this term. All editing changes are performed on the edit buffer, and no changes to it shall affect any file until an editor command writes the file. When using vi , the terminal screen acts as a window into the editing buffer. Changes made to the editing buffer shall be reflected in the screen display; the position of the cursor on the screen shall indicate the position within the editing buffer. Certain terminals do not have all the capabilities necessary to support the complete vi definition. When these commands cannot be supported on such terminals, this condition shall not produce an error message such as "not an editor command" or report a syntax error. The implementation may either accept the commands and produce results on the screen that are the result of an unsuccessful attempt to meet the requirements of this volume of POSIX.1-2017 or report an error describing the terminal-related deficiency. See the ENVIRONMENT VARIABLES section of the ex command for the environment variables that affect the execution of the vi command. See the ASYNCHRONOUS EVENTS section of the ex for the asynchronous events that affect the execution of the vi command. Standard output may be used for writing prompts to the user, for informational messages, and for writing lines from the file. The following symbols are used in this reference page to represent arguments to commands. Commands that take motion arguments operate on either lines or characters, depending on the circumstances. When operating on lines, all lines that fall partially or wholly within the text region specified for the command shall be affected. When operating on characters, only the exact characters in the specified text region shall be affected. Each motion command specifies this individually. When commands that may be motion commands are not used as motion commands, they shall set the current position to the current line and column as specified. The point located between the last non- (if any) and the terminating of a line. For an empty line, this location coincides with the beginning of the line. The location corresponding to the end of the last line in the edit buffer. In the remainder of the description of the vi utility, the term "buffer line" refers to a line in the edit buffer and the term "display line" refers to the line or lines on the display screen used to display one buffer line. The term "current line" refers to a specific "buffer line". If any command is executed that overwrites a portion of the screen other than the last line of the screen (for example, the ex suspend or ! commands), other than the ex shell command, the user shall be prompted for a character before the screen is refreshed and the edit session continued. characters shall take up the number of columns on the screen set by the tabstop edit option (see ex ), unless there are less than that number of columns before the display margin that will cause the displayed line to be folded; in this case, they shall only take up the number of columns up to that boundary. The cursor shall be placed on the current line and relative to the current column as specified by each command described in the following sections. In visual mode, if a line from the edit buffer (other than the current line) does not entirely fit into the lines at the bottom of the display that are available for its presentation, the editor may choose not to display any portion of the line. The lines of the display that do not contain text from the edit buffer for this reason shall each consist of a single '@' character. In visual mode, the editor may choose for unspecified reasons to not update lines in the display to correspond to
Excerpt from a page describing this subject · 40,000 chars · not written by Vinony
Wikidata facts
- Creator
- Bill Joy
- Developer
- Bill Joy
- Official website
- ex-vi.sourceforge.net
- Image
- NetBSD 6.1 vi C Hello World.png
Show 12 more facts
- inception
- 1976-00-00
- operating system
- Unix-like operating system
- described at URL
- pubs.opengroup.org/onlinepubs/9699919799/utilities/vi.html
- programmed in
- C
- topic's main category
- Category:Vi
- Stack Exchange tag
- stackoverflow.com/tags/vi
- Commons category
- Vi (editor)
- copyright license
- BSD licenses
- source code repository URL
- ex-vi.cvs.sourceforge.net/ex-vi/ex-vi
- Stack Exchange site URL
- vi.stackexchange.com
- has command line option
- w
- software version identifier
- 050325
via Wikidata · CC0
Article · Polski
vi – ekranowy, modalny edytor tekstu, używany w systemach Unix. Jego autorem jest Bill Joy. Nazwa pochodzi od angielskiego wyrazu visual. Edytor vi w praktyce został wyparty przez klony, takie jak Vim, lub elvis, które oferują bogatsze możliwości. Pozostaje jednym z narzędzi administratora ze względu na powszechność i jednolitość implementacji. Użytkownik vi widzi na ekranie fragment treści pliku tekstowego, po którym może poruszać się (za pomocą kursorów), może dokonywać zmian tekstu i dopisywać nowy tekst. Edytor vi można uruchomić z argumentem będącym nazwą pliku. Jeżeli taki plik nie istnieje, to zostanie utworzony nowy. Edytor vi w odróżnieniu od większości edytorów jest modalny – w każdej chwili znajduje się w jednym z dwu trybów pracy: trybie wstawiania lub trybie poleceń. Bezpośrednio po uruchomieniu vi znajduje się w trybie poleceń. Przejście do trybu wstawiania odbywać się może m.in. przez wydanie polecenia i (insert) lub a (append). Polecenia vi nie wymagają potwierdzenia klawiszem Enter, wykonywane są natychmiast. Przejście z trybu wstawiania do trybu poleceń odbywa się przez naciśnięcie klawisza Esc. W istocie vi jest edytorem ex działającym w trybie wizualnym, dlatego wszystkie polecenia edytora ex dostępne są także w vi. Polecenia ex wydawane w trybie poleceń poprzedzane są dwukropkiem : i wymagają potwierdzenia klawiszem Enter.
Abstract from DBpedia / Wikipedia · CC BY-SA