From 0af56a0ec766b1c2453f816bd24ecc8f1101f480 Mon Sep 17 00:00:00 2001 From: Felipe Morales Date: Sun, 15 Nov 2015 15:57:42 +0100 Subject: tutor: Update vim-tutor to 0.2.1 Also, some tweaks based on input by @fdinoff on gitter. --- runtime/autoload/tutor.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'runtime/autoload/tutor.vim') diff --git a/runtime/autoload/tutor.vim b/runtime/autoload/tutor.vim index d2881f7f34..5182c53f35 100644 --- a/runtime/autoload/tutor.vim +++ b/runtime/autoload/tutor.vim @@ -2,6 +2,12 @@ " Setup: {{{1 function! tutor#SetupVim() + if &col < 90 + set columns=90 + endif + if !exists('g:did_load_ftplugin') || g:did_load_ftplugin != 1 + filetype plugin on + endif if has('syntax') if !exists('g:syntax_on') || g:syntax_on == 0 syntax on @@ -336,6 +342,7 @@ function! tutor#TutorCmd(tutor_name) let l:to_open = l:tutors[l:tutor_to_open-1] endif + call tutor#SetupVim() exe "edit ".l:to_open endfunction -- cgit