SHARE
TWEET

Vim Guitar Tablature Setup

textandmetal Sep 16th, 2019 (edited) 112 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. au BufNewFile,BufRead *.tablature set filetype=tablature
  2. augroup Tablature
  3.     autocmd!
  4.     " Snippet for a blank tablature currently in your home folder,https://pastebin.com/8n5qtwB1
  5.     autocmd FileType tablature nnoremap ,nt :-1read ~/tablature<CR>
  6.     " Use <Space><Space> to edit title and to move to marker at the start of tablature
  7.     autocmd FileType tablature nnoremap <Space><Space> <Esc>/<++><Enter>"_c4l<Esc>l
  8.     " Remove a chord, this clears the current column of tablature
  9.     autocmd FileType tablature nnoremap ,R 2kr 2jr-jr-jr-jr-jr-jr-5k
  10.     " G Chord
  11.     autocmd FileType tablature nnoremap ,G 2krG2jr3jr23jr3jr35k
  12.     " C Chord
  13.     autocmd FileType tablature nnoremap ,C 2krC3jr3jr22jr3jr35k
  14.     " D Chord
  15.     autocmd FileType tablature nnoremap ,D 2krD5jr3jr2jr35k
  16.     " A Chord
  17.     autocmd FileType tablature nnoremap ,A 2krA4jr2jr2jr24k
  18.     " E Chord
  19.     autocmd FileType tablature nnoremap ,E 2krE3jr2jr2jr13k
  20. augroup END
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top