SyntaxFix
Write A Post
Hire A Developer
Questions
Another vi command that'll do: :%s/.$// This removes the last character of each line in the file. The drawback to this search and replace command is that it doesn't care what the last character is, so be careful not to call it twice.
:%s/.$//