aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-17 00:11:48 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-17 00:11:48 +1200
commit0a7c016f4d3f46b2087b573076a847f0b6d41e56 (patch)
tree036ad4cf407dbdc19e1eb4f1d58b6da7d006d06d
parentAdd note about 'ttymouse' option existence (diff)
downloaddotfiles-0a7c016f4d3f46b2087b573076a847f0b6d41e56.tar.gz
dotfiles-0a7c016f4d3f46b2087b573076a847f0b6d41e56.zip
Rearrange filetype and syntax logic
-rw-r--r--vim/vimrc36
1 files 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 <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