Login
Remember
Register
Questions
Unanswered
Tags
Categories
Ask a Question
Blogs
Contact Us
Ask a Question
How to delete a line in VI editor
+2
votes
asked
Sep 8, 2018
in
General
by
praveen
(
15.3k
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
0
votes
answered
Sep 8, 2018
by
pkumar81
(
27.1k
points)
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 17, 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 5, 2020
in
Programming Languages
by
pythonuser
(
15.7k
points)
python
array
matrix
delete
+4
votes
1
answer
How to delete the last item of a Python list
asked
May 23, 2020
in
Programming Languages
by
pythonuser
(
15.7k
points)
python
list
delete
+2
votes
1
answer
Python : How to check if a line is an empty line
asked
Apr 19, 2018
in
Programming Languages
by
pythonuser
(
15.7k
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
(
15.3k
points)
python
empty
line
+2
votes
1
answer
How to count the number of lines in a file using Windows command
asked
Nov 22, 2016
in
Operating Systems
by
praveen
(
15.3k
points)
windows
file
line
command
count
Categories
All categories
General
(35)
CMS Tips
(12)
Operating Systems
(78)
Web & Google
(59)
Programming Languages
(348)
Databases
(59)
Most popular tags
python
list
numpy
linux
array
ubuntu
pandas
php
file
dataframe
string
dictionary
postgresql
command
apache
mysql
csr_matrix
directory
vps
csv
windows
sql
nginx
sort
error
...