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

No comments:

Post a Comment