vimtricks.wiki Concise Vim tricks, one at a time.

How do you set a fixed width for a window?

Answer

:vertical resize 40

Explanation

Use :vertical resize 40 to set the window width to 40 columns. Add set winfixwidth to prevent the width from changing.

Next

How do I visually select a double-quoted string including the quotes themselves?