From e793d5590bfb91f272ffa381661d0853f4dcbfaa Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 11 Nov 2019 20:18:54 -0800 Subject: [PATCH] fix trailing characters --- .vim/functions.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vim/functions.vim b/.vim/functions.vim index 83313b3..8d5fb79 100644 --- a/.vim/functions.vim +++ b/.vim/functions.vim @@ -15,7 +15,7 @@ function! s:guid() pythonx import uuid let l:guid = pyxeval('str(uuid.uuid4())') elseif has('windows') - let l:guid = system('powershell.exe -command "[guid]::NewGuid().ToString()"') + let l:guid = system('powershell.exe -command "[guid]::NewGuid().ToString()"')[:-2] endif if exists('l:guid') execute 'normal! a' . l:guid . "\"