From 33b443a71da33ad0205d1be04adbded85c114c16 Mon Sep 17 00:00:00 2001 From: katherine Date: Tue, 7 Nov 2017 21:25:41 -0700 Subject: add fix highlight rules dunno why never bothered to do that before. also, nim settings --- .vimrc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.vimrc b/.vimrc index b5a3eae..e752f01 100644 --- a/.vimrc +++ b/.vimrc @@ -19,6 +19,7 @@ Plugin 'kchmck/vim-coffee-script' Plugin 'elixir-lang/vim-elixir' Plugin 'plasticboy/vim-markdown' Plugin 'shmibs/mips.vim' +Plugin 'zah/nim.vim' Plugin 'wlangstroth/vim-racket' Plugin 'rust-lang/rust.vim' Plugin 'cakebaker/scss-syntax.vim' @@ -133,12 +134,12 @@ set title set spelllang=en_gb "visual marker for overflowing the 80th column -highlight Column80 ctermbg=black -call matchadd('Column80', '\%81v', 100) +highlight Column81 ctermbg=8 +call matchadd('Column81', '\%81v', 100) "highlight space before tab -highlight SpaceBeforeTab ctermbg=black -call matchadd('SpaceBeforeTab', '^\ \+\t') +highlight SpaceBeforeTab ctermbg=red +call matchadd('SpaceBeforeTab', '\ \t') "get rid of that annoying yellow explosion everywhere "that neovim sets as default @@ -240,6 +241,7 @@ autocmd FileType make call Settings_script() autocmd FileType markdown call Settings_markdown() autocmd FileType matlab call Settings_matlab() autocmd FileType mips call Settings_mips() +autocmd FileType nim call Settings_nim() autocmd FileType mkd call Settings_text() autocmd FileType perl call Settings_perl() autocmd FileType php call Settings_html() @@ -382,6 +384,11 @@ function! Settings_mips() nnoremap -- O# endfunction +function! Settings_nim() + call Settings_script() + nnoremap -- O]#hhi#[ +endfunction + function! Settings_script() "settings setlocal shiftwidth=4 -- cgit v1.2.3