To format a line to the left I use :left
. Use this format an entire file:
:%le
More Related Contents:
- Turning off auto indent when pasting text into vim
- Indent multiple lines quickly in vi
- Tab key == 4 spaces and auto-indent after curly braces in Vim
- Why does vim not obey my expandtab in python files?
- Indenting in VIM with all the files in Folder
- Is it possible to display indentation guides in Vim?
- How do I fix the indentation of an entire file in Vi?
- vim remove non existing mapping [closed]
- How to replace a character by a newline in Vim
- Vim clear last search highlighting
- Redefine tab as 4 spaces
- Vim: apply settings on files in directory
- What’s a quick way to comment/uncomment lines in Vim?
- Changing Vim indentation behavior by file type
- How to copy to clipboard in Vim?
- Can I map Alt key in Vim?
- Make Vim show ALL white spaces as a character
- What is in your .vimrc? [closed]
- Copy all the lines to clipboard
- Mapping in vimrc causes bizarre arrow behaviour
- How can I change a file’s encoding with vim?
- Alt key shortcuts not working on gnome terminal with Vim
- Convert ^M (Windows) line breaks to normal line breaks
- Vim: insert the same characters across multiple lines
- reformat in vim for a nice column layout
- Automatic closing brackets for Vim [closed]
- How to redirect ex command output into current buffer or file?
- Multiple commands on same line
- How can you automatically remove trailing whitespace in vim
- Paste in insert mode?