dotfiles

<-- duh.
git clone https://hhvn.uk/dotfiles
git clone git://hhvn.uk/dotfiles
Log | Files | Refs | Submodules | LICENSE

rcshell.vim (248B)


      1 autocmd BufRead,BufNewFile .rcrc*,rcrc,*.rc, set filetype=rcshell
      2 
      3 function! s:DetectRcShell()
      4   let shebang = getline(1)
      5   if shebang =~# '#!.*rc.*'
      6     set filetype=rcshell
      7   endif
      8 endfunction
      9 
     10 autocmd BufRead,BufNewFile * call s:DetectRcShell()