Login
Remember
Register
Questions
Unanswered
Categories
Ask a Question
Quiz
Ask a Question
How to delete a line in VI editor
+2
votes
asked
Sep 8, 2018
in
General IT Tips
by
praveen
(
73.6k
points)
I am new to VI editor and trying to learn shortcuts. Is these shortcut to delete a line in VI editor?
vi
delete
line
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
+1
vote
answered
Sep 8, 2018
by
pkumar81
(
355k
points)
selected
Mar 9
by
pkumar81
Best answer
You can do by pressing 'd' twice quickly. Take the cursor to the line you want to delete and then type 'dd'. It will delete that line. If you are in insert mode, press ESC to come out of insert mode. Then only 'dd' will work.
commented
Sep 18, 2018
by
anonymous
i have some confusions regarding this
Please
log in
or
register
to add a comment.
Related questions
+2
votes
1
answer
How to delete a row or column of a 2D array in Python
asked
Feb 6, 2020
in
Programming Languages
by
pythonuser
(
77.8k
points)
python
array
matrix
delete
+5
votes
1
answer
R: how to change the line thickness in ggplot
asked
Nov 8, 2021
in
Programming Languages
by
praveen
(
73.6k
points)
r
ggplot
line
thickness
+2
votes
1
answer
Python : How to check if a line is an empty line
asked
Apr 20, 2018
in
Programming Languages
by
pythonuser
(
77.8k
points)
file
python
record
line
+2
votes
1
answer
Python - How to check if a line read from file is empty?
asked
May 31, 2016
in
Programming Languages
by
praveen
(
73.6k
points)
python
empty
line
+1
vote
1
answer
How to delete an element from a numpy array?
asked
Dec 18, 2023
in
Programming Languages
by
pythonuser
(
77.8k
points)
numpy
delete
Categories
All categories
Programming Languages
(734)
Machine Learning
(34)
Operating Systems
(132)
Databases
(97)
Web & Google
(90)
CMS Tips
(34)
General IT Tips
(90)
GK Quiz QA
(81)
...