From ee89591386b1e455c0a01973d3dd2291f28ac576 Mon Sep 17 00:00:00 2001 From: Von Random Date: Thu, 21 Jun 2018 11:56:52 +0300 Subject: [PATCH] some vimrc tweaks --- vimrc | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/vimrc b/vimrc index e1c0e94..8e39047 100644 --- a/vimrc +++ b/vimrc @@ -1,5 +1,5 @@ " various settings -set nobackup nomodeline backspace=indent,eol,start foldmethod=marker mouse= cursorline +set nobackup nomodeline backspace=indent,eol,start foldmethod=marker cursorline mouse= " hidden characters set list listchars=tab:\|_,nbsp:x,trail:* " search @@ -19,7 +19,7 @@ set statusline=[%F]\ %R%H%W%M\ %=[%{&fenc}/%{&ff}]\ %y\ [%4l/%L:%3v] let g:sh_indent_case_labels=1 " version specific settings if v:version >= 703 - set colorcolumn=80 relativenumber formatoptions+=j ttymouse=sgr + set colorcolumn=80 relativenumber formatoptions+=j endif if v:version >= 800 set breakindent @@ -59,8 +59,8 @@ nnoremap s :w fun! s:ToggleMouse() if !exists("s:old_mouse") let s:old_mouse = "a" + set ttymouse=sgr endif - if &mouse == "" let &mouse = s:old_mouse echo "mouse enabled (" . &mouse . ")" @@ -72,13 +72,19 @@ fun! s:ToggleMouse() endfunction noremap m :call ToggleMouse() -colorscheme default - " plugins let plugins = expand("$HOME/.vimplugins") if filereadable(plugins) && v:version >= 703 execute 'source ' . fnameescape(plugins) +else + colorscheme default endif +" explicit solarized8 +"let g:solarized_use16 = 1 +"let g:solarized_term_italics = 0 +"set bg=light +"colorscheme solarized8 + syntax on filetype plugin on