Фрее Цонвертер
Вим Цоммандс Цхеат Схеет
Свеобухватна шифра Вим команди. Претражите 80+ основних Вим команди са примерима, описима и копирањем једним кликом.
i
Enter Insert mode before the cursor
Пример:
iI
Enter Insert mode at the beginning of the line
Пример:
Ia
Enter Insert mode after the cursor
Пример:
aA
Enter Insert mode at the end of the line
Пример:
Ao
Open a new line below and enter Insert mode
Пример:
oO
Open a new line above and enter Insert mode
Пример:
Ov
Enter Visual mode (character selection)
Пример:
vV
Enter Visual Line mode (line selection)
Пример:
VCtrl+v
Enter Visual Block mode (column selection)
Пример:
Ctrl+v:
Enter Command-line mode
Пример:
:wEsc
Return to Normal mode from any mode
Пример:
EscR
Enter Replace mode (overwrite characters)
Пример:
Rh
Move cursor left
Пример:
5hj
Move cursor down
Пример:
10jk
Move cursor up
Пример:
10kl
Move cursor right
Пример:
5lw
Move to the start of the next word
Пример:
3wb
Move to the start of the previous word
Пример:
3be
Move to the end of the current word
Пример:
2e0
Move to the beginning of the line
Пример:
0^
Move to the first non-blank character of the line
Пример:
^$
Move to the end of the line
Пример:
$gg
Move to the first line of the file
Пример:
ggG
Move to the last line of the file
Пример:
G:N
Jump to line number N
Пример:
:42Ctrl+f
Scroll forward (down) one screen
Пример:
Ctrl+fCtrl+b
Scroll backward (up) one screen
Пример:
Ctrl+bCtrl+d
Scroll down half a screen
Пример:
Ctrl+dCtrl+u
Scroll up half a screen
Пример:
Ctrl+uH
Move cursor to the top of the screen
Пример:
HM
Move cursor to the middle of the screen
Пример:
ML
Move cursor to the bottom of the screen
Пример:
L%
Jump to matching bracket, parenthesis, or brace
Пример:
%x
Delete the character under the cursor
Пример:
xdd
Delete (cut) the current line
Пример:
dddw
Delete from cursor to the end of the word
Пример:
dwd$
Delete from cursor to the end of the line
Пример:
d$D
Delete from cursor to end of line (same as d$)
Пример:
Dyy
Yank (copy) the current line
Пример:
yyyw
Yank (copy) from cursor to end of word
Пример:
ywp
Paste after the cursor
Пример:
pP
Paste before the cursor
Пример:
Pu
Undo the last change
Пример:
uCtrl+r
Redo the last undone change
Пример:
Ctrl+rcc
Change (delete and enter insert mode) the current line
Пример:
cccw
Change from cursor to end of word
Пример:
cwc$
Change from cursor to end of line
Пример:
c$.
Repeat the last change
Пример:
.>>
Indent the current line one level to the right
Пример:
>><<
Unindent the current line one level to the left
Пример:
<<==
Auto-indent the current line
Пример:
==J
Join the current line with the line below
Пример:
J~
Toggle case of character under cursor
Пример:
~r{char}
Replace the character under the cursor with {char}
Пример:
ra/{pattern}
Search forward for pattern
Пример:
/foo?{pattern}
Search backward for pattern
Пример:
?foon
Repeat the last search in the same direction
Пример:
nN
Repeat the last search in the opposite direction
Пример:
N*
Search forward for the word under the cursor
Пример:
*#
Search backward for the word under the cursor
Пример:
#:s/old/new/g
Replace all occurrences of old with new on the current line
Пример:
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
Пример:
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
Пример:
:%s/foo/bar/gc:noh
Clear the search highlight
Пример:
:noh:w
Save the current file
Пример:
:w:w filename
Save the current buffer as a new filename
Пример:
:w newfile.txt:q
Quit (close the window)
Пример:
:q:wq
Save and quit
Пример:
:wq:q!
Quit without saving (force quit)
Пример:
:q!:x
Save and quit (only writes if changes were made)
Пример:
:x:e filename
Open a file for editing
Пример:
:e README.md:sp
Split the window horizontally
Пример:
:sp file.txt:vsp
Split the window vertically
Пример:
:vsp file.txtCtrl+w+w
Switch focus to the next split window
Пример:
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
Пример:
Ctrl+w l:close
Close the current window split
Пример:
:close:only
Close all windows except the current one
Пример:
:only:bn
Switch to the next buffer
Пример:
:bn:bp
Switch to the previous buffer
Пример:
:bp:bd
Delete (close) the current buffer
Пример:
:bd:ls
List all open buffers
Пример:
:ls:b N
Switch to buffer number N
Пример:
:b 2:tabnew
Open a new tab
Пример:
:tabnew file.txt:tabn
Switch to the next tab
Пример:
:tabn:tabp
Switch to the previous tab
Пример:
:tabp:tabclose
Close the current tab
Пример:
:tabclosegt
Go to the next tab
Пример:
gtgT
Go to the previous tab
Пример:
gTq{a-z}
Start recording a macro into register {a-z}
Пример:
qqq (stop)
Stop recording the current macro
Пример:
q@{a-z}
Execute the macro stored in register {a-z}
Пример:
@q@@
Repeat the last executed macro
Пример:
@@N@{a-z}
Execute macro N times
Пример:
5@q:reg
Show the contents of all registers
Пример:
:regv then d
Select text in Visual mode then delete it
Пример:
vwdv then y
Select text in Visual mode then yank (copy) it
Пример:
vwyv then c
Select text in Visual mode then change it
Пример:
vwcv then >
Indent selected text to the right
Пример:
vip>vip
Select the current paragraph in Visual mode
Пример:
vipviw
Select the current word in Visual mode
Пример:
viwvis
Select the current sentence in Visual mode
Пример:
visV then J
Select lines in Visual Line mode then join them
Пример:
VjJ:set number
Show line numbers
Пример:
:set number:set nonumber
Hide line numbers
Пример:
:set nonumber:syntax on
Enable syntax highlighting
Пример:
:syntax on:colorscheme
Change the color scheme
Пример:
:colorscheme desert:help {topic}
Open Vim help for a topic
Пример:
:help :wm{a-z}
Set a mark at the current cursor position
Пример:
ma'{a-z}
Jump to the line of a mark
Пример:
'a`{a-z}
Jump to the exact position of a mark
Пример:
`a:set paste
Enable paste mode to avoid auto-indent issues
Пример:
:set paste:set ignorecase
Make searches case-insensitive
Пример:
:set ignorecase:set hlsearch
Highlight all search matches
Пример:
:set hlsearchga
Show the ASCII value of the character under the cursor
Пример:
gazz
Center the current line on the screen
Пример:
zzCtrl+g
Show the current file name and cursor position
Пример:
Ctrl+gPovezani alati
Pogledaj sve alateГит команде Цхеат Схеет
Свеобухватна шифра Гит команди. Претражите 80+ основних Гит команди са примерима, описима и копирањем једним кликом.
Доцкер команде Цхеат Схеет
Свеобухватна Доцкер командна варалица. Претражите 70+ основних Доцкер команди са примерима, описима и копирањем једним кликом.
Линук / Басх Цомманд Цхеат Схеет
Свеобухватна варалица за Линук и Басх команде. Претражите 80+ основних команди са примерима, описима и копирањем једним кликом.
СКЛ Форматтер & Беаутифиер
Форматирајте, улепшајте и очистите СКЛ упите одмах у свом претраживачу. Није потребно отпремање — потпуно приватно и бесплатно.