On 2012-08-25, Paul Isambert wrote: > Santosh Kumar 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?
You could put a textwidth indication in the ruler, which doesn't take as much screen space as the statusline, but 'rulerformat' doesn't give you as much space for customization. Regards, Gary -- 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
