vim text editor

Publicado el: 23 abril 2022
en el canal de: NED
42
2

vim text editor

##########################
VIM
##########################

Modes of operation: Command, Insert, and Last Line Modes.
VIM Config File: ~/.vimrc

Entering the Insert Mode from the Command Mode
i = insert before the cursor
I = insert at the beginning of the line
a = insert after the cursor
A = insert at the end of the line
o = insert on the next line

Entering the Last Line Mode from the Command Mode
:

Returning to Command Mode from Insert or Last Line Mode
ESC

Shortcuts in Last Line Mode
w! = write/save the file
q! = quit the file without saving
wq! = save/write and quit
e! = undo to the last saved version of the file
set nu = set line numbers
set nonu = unset line numbers
syntax on|off
%s/search_string/replace_string/g

Shortcuts in Command Mode
x = remove char under the cursor
dd = cut the current line
4dd = cut 4 lines
ZZ = save and quit
u = undo
G = move to the end of file
$ = move to the end of line
0 or ^ = move to the beginning of file
:n (Ex :10) = move to line n
Shift+v = select the current line
y = yank/copy to clipboard
p = paste after the cursor
P = paste before the cursor
/string = search for string forward
?string = search for string backward
n = next occurrence
N = previous occurrence

Opening more files in stacked windows
vim -o file1 file2

Opening more files and highlighting the differences
vim -d file1 file2
Ctrl+w = move between files


En esta página del sitio puede ver el video en línea vim text editor de Duración hora minuto segunda en buena calidad , que subió el usuario NED 23 abril 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 42 veces y le gustó 2 a los espectadores. Disfruta viendo!