From c07dfa628b74b836f146dc301813700efe627cc8 Mon Sep 17 00:00:00 2001
From: Chris Coley <chris@codingallnight.com>
Date: Mon, 2 Jul 2018 14:30:53 -0700
Subject: [PATCH] Remove tailing space from the VIM modeline
---
vimrc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vimrc b/vimrc
index 88f7f7f..abfc08f 100644
--- a/vimrc
+++ b/vimrc
@@ -84,7 +84,7 @@ set modelines=5
" Append a modeline at the end of a file. Uses '#' comment character
nnoremap <leader>ml :call AppendModeline()<CR>
function! AppendModeline()
- let l:modeline = printf(&commentstring, printf(" vi: set ts=%d sts=%d sw=%d %set ft=%s: ", &tabstop, &shiftwidth, &softtabstop, &expandtab ? '' : 'no', &filetype))
+ let l:modeline = printf(&commentstring, printf(" vi: set ts=%d sts=%d sw=%d %set ft=%s:", &tabstop, &shiftwidth, &softtabstop, &expandtab ? '' : 'no', &filetype))
call append(line("$"), l:modeline)
endfunction
--
GitLab