Computer Science - Linux - Discussion
Discussion Forum : Linux - Section 1 (Q.No. 4)
4.
What command is used with vi editor to delete a single character?
Discussion:
13 comments Page 1 of 2.
Anupam Thakur said:
8 years ago
x delete single character under the cursor.
Nx delete N characters, starting with character under cursor
dw delete the single word beginning with a character under the cursor
dNw delete N words beginning with character under cursor;
e.g., d5w deletes 5 words
D delete the remainder of the line, starting with current cursor position
* dd delete entire current line
Ndd or dNd delete N lines, beginning with the current line;
e.g., 5dd deletes 5 lines
Nx delete N characters, starting with character under cursor
dw delete the single word beginning with a character under the cursor
dNw delete N words beginning with character under cursor;
e.g., d5w deletes 5 words
D delete the remainder of the line, starting with current cursor position
* dd delete entire current line
Ndd or dNd delete N lines, beginning with the current line;
e.g., 5dd deletes 5 lines
(2)
Sachin attri said:
3 years ago
vim latest version and vi show all contain. importance of line does not matter accordingly.
vim views us all heading in colourful words it means importance heading where we need to know everything.
vim views us all heading in colourful words it means importance heading where we need to know everything.
Deepthi palagati said:
8 years ago
vi command is used to open and create a file.
on the command prompt, by typing vi filename.c we can either create a file or open.
on the command prompt, by typing vi filename.c we can either create a file or open.
Priyatosh said:
1 decade ago
vi editor is one of editor in linux environment. vim is its newer virsion. so we can use vi or vim as an editor.
Pa1 said:
1 decade ago
vi is the text editor, its a screen editor which shows how much of the file as it can fit on the screen.
LAXMI said:
6 years ago
Anyone tell me that why we can use X for a single vi editor character?
Buganda said:
8 years ago
Please someone can tell me how to use the vi or vim editor command?
Nikamshubham said:
5 years ago
Just type vi file_name to create the file and vi is the editor.
Mahesh kethapaga said:
9 years ago
Please, can anyone tell me, hot to use this command?
Hema said:
8 years ago
Why X is used? Can anyone justify this please?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers