nvim/plugin/editft.vim
2021-05-20 18:01:29 +02:00

9 lines
246 B
VimL

function! s:editft()
let ftpl = "$MYVIMDIR/after/ftplugin/" . &ft . ".vim"
exec "vs " . ftpl
exec "autocmd QuitPre <buffer> source " . ftpl
endfunction
noremap <silent> <Plug>(EditFT) :call <SID>editft()<cr>
map <leader>ftp <Plug>(EditFT)