Kigeuzi cha Bure
Vim Amri Karatasi ya Kudanganya
Karatasi kamili ya kudanganya ya amri ya Vim. Tafuta 80+ amri muhimu za Vim na mifano, maelezo, na nakala ya kubofya mara moja.
i
Enter Insert mode before the cursor
Mfano:
iI
Enter Insert mode at the beginning of the line
Mfano:
Ia
Enter Insert mode after the cursor
Mfano:
aA
Enter Insert mode at the end of the line
Mfano:
Ao
Open a new line below and enter Insert mode
Mfano:
oO
Open a new line above and enter Insert mode
Mfano:
Ov
Enter Visual mode (character selection)
Mfano:
vV
Enter Visual Line mode (line selection)
Mfano:
VCtrl+v
Enter Visual Block mode (column selection)
Mfano:
Ctrl+v:
Enter Command-line mode
Mfano:
:wEsc
Return to Normal mode from any mode
Mfano:
EscR
Enter Replace mode (overwrite characters)
Mfano:
Rh
Move cursor left
Mfano:
5hj
Move cursor down
Mfano:
10jk
Move cursor up
Mfano:
10kl
Move cursor right
Mfano:
5lw
Move to the start of the next word
Mfano:
3wb
Move to the start of the previous word
Mfano:
3be
Move to the end of the current word
Mfano:
2e0
Move to the beginning of the line
Mfano:
0^
Move to the first non-blank character of the line
Mfano:
^$
Move to the end of the line
Mfano:
$gg
Move to the first line of the file
Mfano:
ggG
Move to the last line of the file
Mfano:
G:N
Jump to line number N
Mfano:
:42Ctrl+f
Scroll forward (down) one screen
Mfano:
Ctrl+fCtrl+b
Scroll backward (up) one screen
Mfano:
Ctrl+bCtrl+d
Scroll down half a screen
Mfano:
Ctrl+dCtrl+u
Scroll up half a screen
Mfano:
Ctrl+uH
Move cursor to the top of the screen
Mfano:
HM
Move cursor to the middle of the screen
Mfano:
ML
Move cursor to the bottom of the screen
Mfano:
L%
Jump to matching bracket, parenthesis, or brace
Mfano:
%x
Delete the character under the cursor
Mfano:
xdd
Delete (cut) the current line
Mfano:
dddw
Delete from cursor to the end of the word
Mfano:
dwd$
Delete from cursor to the end of the line
Mfano:
d$D
Delete from cursor to end of line (same as d$)
Mfano:
Dyy
Yank (copy) the current line
Mfano:
yyyw
Yank (copy) from cursor to end of word
Mfano:
ywp
Paste after the cursor
Mfano:
pP
Paste before the cursor
Mfano:
Pu
Undo the last change
Mfano:
uCtrl+r
Redo the last undone change
Mfano:
Ctrl+rcc
Change (delete and enter insert mode) the current line
Mfano:
cccw
Change from cursor to end of word
Mfano:
cwc$
Change from cursor to end of line
Mfano:
c$.
Repeat the last change
Mfano:
.>>
Indent the current line one level to the right
Mfano:
>><<
Unindent the current line one level to the left
Mfano:
<<==
Auto-indent the current line
Mfano:
==J
Join the current line with the line below
Mfano:
J~
Toggle case of character under cursor
Mfano:
~r{char}
Replace the character under the cursor with {char}
Mfano:
ra/{pattern}
Search forward for pattern
Mfano:
/foo?{pattern}
Search backward for pattern
Mfano:
?foon
Repeat the last search in the same direction
Mfano:
nN
Repeat the last search in the opposite direction
Mfano:
N*
Search forward for the word under the cursor
Mfano:
*#
Search backward for the word under the cursor
Mfano:
#:s/old/new/g
Replace all occurrences of old with new on the current line
Mfano:
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
Mfano:
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
Mfano:
:%s/foo/bar/gc:noh
Clear the search highlight
Mfano:
:noh:w
Save the current file
Mfano:
:w:w filename
Save the current buffer as a new filename
Mfano:
:w newfile.txt:q
Quit (close the window)
Mfano:
:q:wq
Save and quit
Mfano:
:wq:q!
Quit without saving (force quit)
Mfano:
:q!:x
Save and quit (only writes if changes were made)
Mfano:
:x:e filename
Open a file for editing
Mfano:
:e README.md:sp
Split the window horizontally
Mfano:
:sp file.txt:vsp
Split the window vertically
Mfano:
:vsp file.txtCtrl+w+w
Switch focus to the next split window
Mfano:
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
Mfano:
Ctrl+w l:close
Close the current window split
Mfano:
:close:only
Close all windows except the current one
Mfano:
:only:bn
Switch to the next buffer
Mfano:
:bn:bp
Switch to the previous buffer
Mfano:
:bp:bd
Delete (close) the current buffer
Mfano:
:bd:ls
List all open buffers
Mfano:
:ls:b N
Switch to buffer number N
Mfano:
:b 2:tabnew
Open a new tab
Mfano:
:tabnew file.txt:tabn
Switch to the next tab
Mfano:
:tabn:tabp
Switch to the previous tab
Mfano:
:tabp:tabclose
Close the current tab
Mfano:
:tabclosegt
Go to the next tab
Mfano:
gtgT
Go to the previous tab
Mfano:
gTq{a-z}
Start recording a macro into register {a-z}
Mfano:
qqq (stop)
Stop recording the current macro
Mfano:
q@{a-z}
Execute the macro stored in register {a-z}
Mfano:
@q@@
Repeat the last executed macro
Mfano:
@@N@{a-z}
Execute macro N times
Mfano:
5@q:reg
Show the contents of all registers
Mfano:
:regv then d
Select text in Visual mode then delete it
Mfano:
vwdv then y
Select text in Visual mode then yank (copy) it
Mfano:
vwyv then c
Select text in Visual mode then change it
Mfano:
vwcv then >
Indent selected text to the right
Mfano:
vip>vip
Select the current paragraph in Visual mode
Mfano:
vipviw
Select the current word in Visual mode
Mfano:
viwvis
Select the current sentence in Visual mode
Mfano:
visV then J
Select lines in Visual Line mode then join them
Mfano:
VjJ:set number
Show line numbers
Mfano:
:set number:set nonumber
Hide line numbers
Mfano:
:set nonumber:syntax on
Enable syntax highlighting
Mfano:
:syntax on:colorscheme
Change the color scheme
Mfano:
:colorscheme desert:help {topic}
Open Vim help for a topic
Mfano:
:help :wm{a-z}
Set a mark at the current cursor position
Mfano:
ma'{a-z}
Jump to the line of a mark
Mfano:
'a`{a-z}
Jump to the exact position of a mark
Mfano:
`a:set paste
Enable paste mode to avoid auto-indent issues
Mfano:
:set paste:set ignorecase
Make searches case-insensitive
Mfano:
:set ignorecase:set hlsearch
Highlight all search matches
Mfano:
:set hlsearchga
Show the ASCII value of the character under the cursor
Mfano:
gazz
Center the current line on the screen
Mfano:
zzCtrl+g
Show the current file name and cursor position
Mfano:
Ctrl+gZana Zinazohusiana
Angalia zana zoteAmri za Git Karatasi ya Kudanganya
Karatasi ya kudanganya ya amri ya Git kamili. Tafuta 80+ amri muhimu za Git na mifano, maelezo, na nakala ya mbofyo mmoja.
Amri za Docker Karatasi ya Kudanganya
Karatasi kamili ya kudanganya ya amri ya Docker. Tafuta amri 70+ muhimu za Docker na mifano, maelezo, na nakala ya kubofya mara moja.
Linux / Bash Karatasi ya Kudanganya ya Amri
Laha ya kudanganya ya amri ya Linux na Bash. Tafuta 80+ amri muhimu kwa mifano, maelezo, na nakala ya mbofyo mmoja.
Muundo wa SQL & Mrembo
Fomati, ipamba, na safisha hoja za SQL papo hapo kwenye kivinjari chako. Hakuna upakiaji unaohitajika - faragha kabisa na bila malipo.