Santosh Kumar <[email protected]> a écrit: > > Still nothing is shown on the status bar. > > Can't we create a function named Toogletw() and call it on this mapping?
I hadn't read "status-line"; my code prints the width in the command-line. If you want the value of "textwidth" to be mentioned in the status line, then change the "statusline" option, and let your mapping simply change that value; the change will be automatically reflected in the status line. The simpler solution is (see ":help statusline"): setlocal statusline=%!&tw Of course the problem then is what happens if you don't have a status-line? Best, Paul -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
