aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2018-07-19 14:06:28 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2018-07-19 14:06:28 +0200
commit175751ba8cebf560ddd8651a7f20c07854a19493 (patch)
tree5038e871ab0c34e8411054d71a237818d268e724
parent6bdc984e1ad73f0653f607dbe99116d48f79155d (diff)
downloaddotfiles-175751ba8cebf560ddd8651a7f20c07854a19493.tar.xz
nvim: move colors around
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--nvim/init.vim26
1 files changed, 11 insertions, 15 deletions
diff --git a/nvim/init.vim b/nvim/init.vim
index 343f838..ca991da 100644
--- a/nvim/init.vim
+++ b/nvim/init.vim
@@ -59,6 +59,17 @@ set copyindent
set listchars=tab:»·,trail:·,nbsp:◊
set list
+" Colors
+colorscheme base16-atelier-dune
+
+" Color spaces at end of lines bright red for visibility
+highlight ExtraWhitespace ctermbg=red guibg=red
+match ExtraWhitespace /\s\+$/
+autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
+autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
+autocmd InsertLeave * match ExtraWhitespace /\s\+$/
+autocmd BufWinLeave * call clearmatches()
+
" List of vim syntaxes to highlight in rST code blocks
let g:rst_syntax_code_list = ['vim', 'c', 'cpp', 'python', 'sh']
@@ -97,21 +108,6 @@ noremap <silent> <Leader>px :Denite buffer file_mru file_rec<CR>
noremap <silent> <Leader>pg :Denite grep<CR>
-"""
-" Syntax highlighting
-"
-
-" Colorscheme
-colorscheme base16-atelier-dune
-
-" Color spaces at end of lines bright red for visibility
-highlight ExtraWhitespace ctermbg=red guibg=red
-match ExtraWhitespace /\s\+$/
-autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
-autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
-autocmd InsertLeave * match ExtraWhitespace /\s\+$/
-autocmd BufWinLeave * call clearmatches()
-
" Horrible hack to work-around weird corrupted lines on window resize
" https://github.com/neovim/neovim/issues/7861