Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleting form feed ^L characters

Tags:

vim

How to delete all form feed characters (represented by ^L) in GVim on Windows?

like image 474
Rook Avatar asked Jan 09 '13 13:01

Rook


People also ask

What is l in text file?

Get Length of the Longest Line in a File You can use the -L (uppercase) option with the wc command to print the length of the longest line in the text file. This command prints the length in terms of the number of characters in a line.

What is a form feed character?

Form feed. Form feed is a page-breaking ASCII control character. It directs the printer to eject the current page and to continue printing at the top of another. Often, it will also cause a carriage return. The form feed character code is defined as 12 (0xC in hexadecimal), and may be represented as control+L or ^L .


1 Answers

:%s/^L//g

will do it. Enter the ^L using ctrl-V ctrl-L

Here's a guide to basic search/replace using Vim.

like image 56
Brian Agnew Avatar answered Oct 07 '22 00:10

Brian Agnew