How to delete all form feed characters (represented by ^L) in GVim on Windows?
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.
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 .
:%s/^L//g
will do it. Enter the ^L
using ctrl-V ctrl-L
Here's a guide to basic search/replace using Vim.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With