O'Reilly logo

Hacking Vim 7.2 by Kim Schulz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Advanced Formatting

Often, the simplest modification to a text or a piece of code is what changes it from being obscure to being easily readable. In this chapter, we will look at some of the simple tricks you can use to format the text you are working on—no matter whether it is plain text or code.

This chapter will have recipes in three categories:

  • Text formatting
  • Code formatting
  • Using external formatter programs

After reading this chapter, you should have a good idea about what is possible and what is not when it comes to text formatting in Vim.

Formatting text

Even though most people prefer graphical word processors such as Microsoft Word or OpenOffice Writer when they want to write plain text, there are still times where an editor such ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required