在 2012年3月12日星期一UTC+8下午8时31分53秒,Tim Chase写道: > On 03/12/12 01:30, Hanfei Shen wrote: > > I want to set normalnumber in normal mode and insert mode, > > relativenumber in visual mode. Is there a way to do that? > > Untested, my guess would be something like > > :autocmd InsertEnter * :set nonumber relativenumber > :autocmd InsertLeave * :set norelativenumber number > > -tim
Hi Tim, Your approach is, to set relativenumber in insert mode ; to set normalnumber in normal mode and visual mode. That is not what I want. Thanks for your response. After reading the 'autocmd-events', there is nothing like ModeSwitch that meets my demand. Thanks! Hanfei -- 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
