Hi again, Jürgen Krämer wrote: > Hi, > > Salman Khilji wrote: > > > This does not work. Is it a bug that the following > > still splits horizontally instead of vertically? > > > > :vertical execute "normal ^W]" > > :nnoremap <c-w>] :vertical wincmd ]<cr>
this is a better version of the above mapping which takes into account optional counts :nnoremap <c-w>] :<c-u>exe 'vert ' . v:count . 'wincmd ]'<cr> Take a look at :help v:count for an explanation why the <c-u> key is needed. Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH & Co. KG mailto:[EMAIL PROTECTED] Hinteres Öschle 2 Tel: +49 / 74 61 / 93 53 - 15 78604 Rietheim-Weilheim Fax: +49 / 74 61 / 93 53 - 99
