Cover by Kim Schulz

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

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 ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required