comparison autoload/lawrencium.vim @ 147:06f4d2c01fd6

Fix indenting
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 09 Apr 2019 20:19:02 -0700
parents 33cc4af93b44
children 59c51f0d6008
comparison
equal deleted inserted replaced
146:33cc4af93b44 147:06f4d2c01fd6
22 endif 22 endif
23 endfunction 23 endfunction
24 24
25 " Shell-slashes the path (opposite of `normalizepath`). 25 " Shell-slashes the path (opposite of `normalizepath`).
26 function! lawrencium#shellslash(path) 26 function! lawrencium#shellslash(path)
27 if exists('+shellslash') && !&shellslash 27 if exists('+shellslash') && !&shellslash
28 return substitute(a:path, '\v\\', '/', 'g') 28 return substitute(a:path, '\v\\', '/', 'g')
29 else 29 else
30 return a:path 30 return a:path
31 endif 31 endif
32 endfunction 32 endfunction
33 33
34 " Like tempname() but with some control over the filename. 34 " Like tempname() but with some control over the filename.
35 function! lawrencium#tempname(name, ...) 35 function! lawrencium#tempname(name, ...)
36 let l:path = tempname() 36 let l:path = tempname()