diff --git a/vimrc b/vimrc index b73f137..6b07967 100644 --- a/vimrc +++ b/vimrc @@ -820,6 +820,15 @@ function! SaveAndExecute(ex_command) abort "{{{ " setlocal nomodifiable endfunction "}}} + +function! JsIncludeExpr(file) + " substitute(substitute(v:fname,'^[\\~@]\/','./',''),'^[\\~@]','./node_modules/','') + + echom v:fname + + return substitute(substitute(a:file,'^[\\~@]\/','./',''),'^[\\~@]','./node_modules/','') + +endfunction "}}} """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""