Showing posts with label toggle. Show all posts
Showing posts with label toggle. Show all posts

17 September 2023

How to set up a command for toggling line wrapping in vim?

In .vimrc, add a line -

map <C-a> :set wrap!<CR>

Thus you press Ctrl-A and toggle between line wrapping and unwrapping