aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload
diff options
context:
space:
mode:
authorFelipe Morales <hel.sheep@gmail.com>2015-11-28 11:23:22 +0100
committerFelipe Morales <hel.sheep@gmail.com>2015-11-28 11:23:22 +0100
commit538a57cfd873a3e8b1e2906c3499f1b83e555ef0 (patch)
tree799643af2ccec80e828e7d13b503d21f4c1a55c4 /runtime/autoload
parentb9139e009f3eb833ab57e73d1ecdbe68752112fe (diff)
parent0af56a0ec766b1c2453f816bd24ecc8f1101f480 (diff)
downloadrneovim-538a57cfd873a3e8b1e2906c3499f1b83e555ef0.tar.gz
rneovim-538a57cfd873a3e8b1e2906c3499f1b83e555ef0.tar.bz2
rneovim-538a57cfd873a3e8b1e2906c3499f1b83e555ef0.zip
Merge pull request #3675 from fmoralesc/update-vim-tutor
tutor: Update vim-tutor to 0.2.1
Diffstat (limited to 'runtime/autoload')
-rw-r--r--runtime/autoload/tutor.vim7
1 files changed, 7 insertions, 0 deletions
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