some vimrc tweaks
This commit is contained in:
parent
d1c2d0370c
commit
ee89591386
1 changed files with 11 additions and 5 deletions
16
vimrc
16
vimrc
|
@ -1,5 +1,5 @@
|
||||||
" various settings
|
" 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
|
" hidden characters
|
||||||
set list listchars=tab:\|_,nbsp:x,trail:*
|
set list listchars=tab:\|_,nbsp:x,trail:*
|
||||||
" search
|
" 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
|
let g:sh_indent_case_labels=1
|
||||||
" version specific settings
|
" version specific settings
|
||||||
if v:version >= 703
|
if v:version >= 703
|
||||||
set colorcolumn=80 relativenumber formatoptions+=j ttymouse=sgr
|
set colorcolumn=80 relativenumber formatoptions+=j
|
||||||
endif
|
endif
|
||||||
if v:version >= 800
|
if v:version >= 800
|
||||||
set breakindent
|
set breakindent
|
||||||
|
@ -59,8 +59,8 @@ nnoremap <Leader>s :w<CR>
|
||||||
fun! s:ToggleMouse()
|
fun! s:ToggleMouse()
|
||||||
if !exists("s:old_mouse")
|
if !exists("s:old_mouse")
|
||||||
let s:old_mouse = "a"
|
let s:old_mouse = "a"
|
||||||
|
set ttymouse=sgr
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if &mouse == ""
|
if &mouse == ""
|
||||||
let &mouse = s:old_mouse
|
let &mouse = s:old_mouse
|
||||||
echo "mouse enabled (" . &mouse . ")"
|
echo "mouse enabled (" . &mouse . ")"
|
||||||
|
@ -72,13 +72,19 @@ fun! s:ToggleMouse()
|
||||||
endfunction
|
endfunction
|
||||||
noremap <Leader>m :call <SID>ToggleMouse()<CR>
|
noremap <Leader>m :call <SID>ToggleMouse()<CR>
|
||||||
|
|
||||||
colorscheme default
|
|
||||||
|
|
||||||
" plugins
|
" plugins
|
||||||
let plugins = expand("$HOME/.vimplugins")
|
let plugins = expand("$HOME/.vimplugins")
|
||||||
if filereadable(plugins) && v:version >= 703
|
if filereadable(plugins) && v:version >= 703
|
||||||
execute 'source ' . fnameescape(plugins)
|
execute 'source ' . fnameescape(plugins)
|
||||||
|
else
|
||||||
|
colorscheme default
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" explicit solarized8
|
||||||
|
"let g:solarized_use16 = 1
|
||||||
|
"let g:solarized_term_italics = 0
|
||||||
|
"set bg=light
|
||||||
|
"colorscheme solarized8
|
||||||
|
|
||||||
syntax on
|
syntax on
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
|
|
Loading…
Reference in a new issue