Skip to content

Instantly share code, notes, and snippets.

@saihoooooooo
Created December 9, 2011 07:57
Show Gist options
  • Save saihoooooooo/1450676 to your computer and use it in GitHub Desktop.
Save saihoooooooo/1450676 to your computer and use it in GitHub Desktop.
make ordered list
nnoremap <silent>xl :<C-u>call <SID>MakeOrderedList()<CR>
function! s:MakeOrderedList()
let l:count = v:count
normal! i1.
if l:count > 1
let @l = 'yyp'
execute 'normal!' (l:count - 1) . '@l'
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment