Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- au BufNewFile,BufRead *.tablature set filetype=tablature
- augroup Tablature
- autocmd!
- " Snippet for a blank tablature currently in your home folder, you have to put it in your snippet folder or wherever you like and change where it reads from, this is just a link to the guitar tab snippet https://pastebin.com/8n5qtwB1
- autocmd FileType tablature nnoremap ,nt :-1read ~/tablature<CR>
- " Use <Space><Space> to edit title and to move to marker at the start of tablature
- autocmd FileType tablature nnoremap <Space><Space> <Esc>/<++><Enter>"_c4l<Esc>l
- " Remove a chord, this clears the current column of tablature
- autocmd FileType tablature nnoremap ,R 2kr 2jr-jr-jr-jr-jr-jr-5k
- " G Chord
- autocmd FileType tablature nnoremap ,G 2krG2jr3jr23jr3jr35k
- " C Chord
- autocmd FileType tablature nnoremap ,C 2krC3jr3jr22jr3jr35k
- " D Chord
- autocmd FileType tablature nnoremap ,D 2krD5jr3jr2jr35k
- " A Chord
- autocmd FileType tablature nnoremap ,A 2krA4jr2jr2jr24k
- " E Chord
- autocmd FileType tablature nnoremap ,E 2krE3jr2jr2jr13k
- augroup END
Add Comment
Please, Sign In to add comment