+3
Respost

Has the command to toggle word wrapping been implemented yet?

Falcon NL fa 13 anys updated by jaming ring fa 7 anys 8
I tried making a shortcut to toggle word wrapping a moment ago, but it appears the toggle command doesn't exist anymore. is there a new way of doing this or is it not implemented yet?

Answer

Answer
Respost
You can do this via the View/Word Wrap menu.

The underlying command is "toggle_setting", you can see how its using in Packages/Default/Main.sublime-menu
Answer
Respost
You can do this via the View/Word Wrap menu.

The underlying command is "toggle_setting", you can see how its using in Packages/Default/Main.sublime-menu
+1
I sure would like to know how to implement this (I want to map super+alt+w to toggle word_wrap).  I putzed around with Default(os).sublime-keymap and no love. Is there a pointer to a doc for a dork like me? 

+47
Since this post is a month old, I presume you found your solution. If anyone is still wondering how to do this, you can add something similar to the following to your User Key Bindings file (on my windows machine it's at C:\Users\myusername\AppData\Roaming\Sublime Text 2\Packages\User\Default (Windows).sublime-keymap--or just select Preferences|User Key Bindings):

{ "keys": ["ctrl+shift+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"} }

Hope this helps,
David
+1
Thanks for this, David!  Works great!
I hadn't figured this out, and it's exactly what I needed.

You Rock!

this was awesome helpful, thanks!!

Super... super usefull, was looking for that for a long time now,thanks!

Use "alt+w" it's easier than pressing 3 keys :)