tablature.vim (938B)
1 function s:Tablature() 2 setlocal nospell 3 setfiletype markdown 4 let lineno = line('.') 5 call append(lineno, '```') 6 call append(lineno+1, 'E |-----------------|-----------------|-----------------|---------------------|') 7 call append(lineno+2, 'B |-----------------|-----------------|-----------------|---------------------|') 8 call append(lineno+3, 'G |-----------------|-----------------|-----------------|---------------------|') 9 call append(lineno+4, 'D |-----------------|-----------------|-----------------|---------------------|') 10 call append(lineno+5, 'A |-----------------|-----------------|-----------------|---------------------|') 11 call append(lineno+6, 'E |-----------------|-----------------|-----------------|---------------------|') 12 call append(lineno+7, '```') 13 hi! link colorcolumn cursorline 14 setlocal colorcolumn=21,39,57,80 15 endfunction 16 17 command Tab call <SID>Tablature()