Op woensdag 3 december 2008, schreef Mr. Shawn H. Corey:
> :map <C-P>    :set textwidth=60<CR>gqap<CR>:set textwidth=0<CR>

:nmap <C-P> :let save_tw=&tw<CR>:set tw=60<CR>gqap<CR>:let &tw=save_tw<CR>

saves the current setting for textwidth, and actually restores it to the
previous value.


Regards,


Peter Palm

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to