diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-17 00:11:48 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-17 00:11:48 +1200 |
commit | 0a7c016f4d3f46b2087b573076a847f0b6d41e56 (patch) | |
tree | 036ad4cf407dbdc19e1eb4f1d58b6da7d006d06d | |
parent | Add note about 'ttymouse' option existence (diff) | |
download | dotfiles-0a7c016f4d3f46b2087b573076a847f0b6d41e56.tar.gz dotfiles-0a7c016f4d3f46b2087b573076a847f0b6d41e56.zip |
Rearrange filetype and syntax logic
-rw-r--r-- | vim/vimrc | 36 |
1 files changed, 18 insertions, 18 deletions
@@ -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 <Space> <PageDown> " Do a :next after hitting the last line @@ -407,23 +425,5 @@ nnoremap <Leader>: ^"zyg_:<C-R>z<CR> " \! executes line with 'shell' nnoremap <Leader>! ^"zyg_:!<C-R>z<CR> -" 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 |