update vim

updated
client-spec/clarity
Michal 2020-04-15 20:02:40 +02:00 committed by Starbeamrainbowlabs
parent ee431d155d
commit 1b41e092fb
1 changed files with 11 additions and 11 deletions

View File

@ -1,37 +1,37 @@
# vim # vim
> Vim (Vi IMproved), a command-line text editor, provides several modes for different kinds of text manipulation. > Vim (Vi IMproved), edytor tekstu wiersza polecenia, oferuje kilka trybów dla różnych rodzajów manipulacji tekstem.
> Pressing `i` enters edit mode. `<Esc>` goes back to normal mode, which doesn't allow regular text insertion. > Naciśnięcie przycisku `i` powoduje przejście do trybu edycji. `<Esc>` wraca do normalnego trybu, który nie pozwala na zwykłe wstawianie tekstu.
> More information: <https://www.vim.org>. > Więcej informacji: <https://www.vim.org>.
- Open a file: - Otwórz plik:
`vim {{path/to/file}}` `vim {{path/to/file}}`
- View Vim's help manual: - Zobacz instrukcję pomocy Vim:
`:help<Enter>` `:help<Enter>`
- Save a file: - Zapisz plik:
`:write<Enter>` `:write<Enter>`
- Quit without saving: - Wyjdź bez zapisywania:
`:quit!<Enter>` `:quit!<Enter>`
- Open a file at a specified line number: - Otwórz plik pod określonym numerem wiersza:
`vim +{{line_number}} {{path/to/file}}` `vim +{{line_number}} {{path/to/file}}`
- Undo the last operation: - Cofnij ostatnią operację:
`u` `u`
- Search for a pattern in the file (press `n`/`N` to go to next/previous match): - Wyszukaj wzorzec w pliku (naciśnij `n`/`N` przejść do następnego/poprzedniego dopasowania):
`/{{search_pattern}}<Enter>` `/{{search_pattern}}<Enter>`
- Perform a regex substitution in the whole file: - Wykonaj podstawienie wyrażenia regularnego w całym pliku:
`:%s/{{pattern}}/{{replacement}}/g<Enter>` `:%s/{{pattern}}/{{replacement}}/g<Enter>`