Skip to content

Commit

Permalink
feat(DogeCreateDocStandard): Do not pre-create the path and and write…
Browse files Browse the repository at this point in the history
… the file after generation (#87)
  • Loading branch information
kkoomen committed Jun 5, 2020
1 parent 8f725bb commit 3fa9d05
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions autoload/doge/pattern.vim
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,6 @@ function! doge#pattern#custom(name) abort
let l:path = stdpath('config')
endif
if !empty(l:path)
try
if !exists(l:path . '/after/ftplugin/')
call mkdir(l:path . '/after/ftplugin/', 'p')
endif
catch /^Vim\%((\a\+)\)\=:E739/
endtry
let l:path .= '/after/ftplugin/' . l:this_ft . '.vim'
endif
if filereadable(l:path)
Expand Down Expand Up @@ -298,7 +292,6 @@ function! doge#pattern#custom(name) abort
call setreg('"', l:doc)
1
call execute("normal! \"\"P'[=']Gdipgg", 'silent!')
call execute('w', 'silent!')
endfunction

let &cpoptions = s:save_cpo
Expand Down

0 comments on commit 3fa9d05

Please sign in to comment.