Skip to content
Hire me

Chris Taylor Developer

Freelance software engineer United Kingdom

  • Services
  • Prices
  • Contact
  • About
    • Background & CV
    • Testing experience
    • On GitHub
    • On Digital Guernsey
  • Projects
  • Engineering

Vim functions

Vim toggle word-wrap

1 April 202423 May 2023 by Chris Taylor

Updated: 23 May 2023

function ToggleWrap()
    if (&wrap == 1)
        set nowrap nolinebreak
    else
        set wrap linebreak
    endif
endfunction

map <leader>w :call ToggleWrap()<CR>
Categories Vim functions Leave a comment
© 2025 Chris Taylor Developer • Built with GeneratePress