nvim/plugin/editft.vim

9 lines
258 B
VimL
Raw Normal View History

2021-05-20 16:01:29 +00:00
function! s:editft()
let ftpl = "$MYVIMDIR/after/ftplugin/" . &ft . ".vim"
exec "vs " . ftpl
exec "autocmd QuitPre <buffer> source " . ftpl
endfunction
2021-08-11 10:25:50 +00:00
noremap <silent> <Plug>(EditFT) <cmd>call <SID>editft()<cr>
2021-09-21 14:43:00 +00:00
map <leader><leader>ftp <Plug>(EditFT)