From ec61f0a2a15aef0ba7f3b91c2d58e182e4cee98d Mon Sep 17 00:00:00 2001 From: Alexander Karle Date: Mon, 2 Apr 2018 13:25:41 -0400 Subject: [PATCH] vimrc minor updates: scrolloff, gui scrollbar, .notes syntax --- vim/theme.vim | 1 + vim/vimrc | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/vim/theme.vim b/vim/theme.vim index 580fed9..50802e6 100644 --- a/vim/theme.vim +++ b/vim/theme.vim @@ -7,6 +7,7 @@ syntax on " Set cursor line when in insert mode (to indicate insert mode) if(has('autocmd')) autocmd InsertEnter,InsertLeave * set cul! + autocmd BufNewFile,BufRead *.notes set filetype=markdown endif " COLORSCHEME diff --git a/vim/vimrc b/vim/vimrc index e6a1466..a858071 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -56,6 +56,13 @@ set wildmenu set ttimeout set ttimeoutlen=30 +" Scroll when cursor gets within 5 rows of screen end +set scrolloff=5 + +" When in MacVim don't show the scrollbars +set guioptions-=r +set guioptions-=L + " Source helper files " Only load plugins if vim-plug installed! if filereadable(expand("~/.vim/autoload/plug.vim")) -- libgit2 0.28.4