From 0a7c016f4d3f46b2087b573076a847f0b6d41e56 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 17 May 2019 00:11:48 +1200 Subject: Rearrange filetype and syntax logic --- vim/vimrc | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 2b63ab2b..7b2485a6 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -199,6 +199,24 @@ set virtualedit+=block " Never beep at me set visualbell t_vb= +" Load filetype settings, plugins, and maps +let maplocalleader = ',' +filetype plugin indent on + +" Use syntax highlighting +if !exists('syntax_on') + syntax enable +endif + +" Try to use sahara colorscheme with 'cursorline' set; otherwise, use the +" default colorscheme with a dark background +try + colorscheme sahara + set cursorline +catch + set background=dark +endtry + " Remap normal space to scroll down a page nnoremap " Do a :next after hitting the last line @@ -407,23 +425,5 @@ nnoremap : ^"zyg_:z " \! executes line with 'shell' nnoremap ! ^"zyg_:!z -" Load filetype settings, plugins, and maps -let maplocalleader = ',' -filetype plugin indent on - -" Use syntax highlighting -if !exists('syntax_on') - syntax enable -endif - -" Try to use sahara colorscheme with 'cursorline' set; otherwise, use the -" default colorscheme with a dark background -try - colorscheme sahara - set cursorline -catch - set background=dark -endtry - " Source any .vim files from ~/.vim/config runtime! config/*.vim -- cgit v1.2.3