2018-03-17 23:59:01 +00:00
|
|
|
set ttyfast
|
|
|
|
|
|
|
|
if &term == 'xterm-256color'
|
|
|
|
set termguicolors
|
|
|
|
endif
|
|
|
|
|
|
|
|
syntax on
|
2018-05-06 21:38:21 +00:00
|
|
|
set background=dark
|
|
|
|
set fillchars=stl:\ ,stlnc:\ ,vert:\|
|
2018-04-01 15:07:11 +00:00
|
|
|
colorscheme monotonous
|
2018-03-17 23:59:01 +00:00
|
|
|
|
|
|
|
set guioptions-=mTrLb
|
|
|
|
set guioptions+=c
|
|
|
|
|
|
|
|
set updatetime=100
|
|
|
|
|
|
|
|
set backupdir=~/.vimtmp
|
|
|
|
set directory=~/.vimtmp
|
|
|
|
|
|
|
|
set tags+=./.tags,.tags;/home/ray/
|
|
|
|
|
|
|
|
" persisitent undo file
|
|
|
|
set undodir=/home/ray/.vim/undodir
|
|
|
|
set undofile
|
|
|
|
|
|
|
|
set clipboard=unnamedplus
|
|
|
|
|
|
|
|
set ignorecase
|
|
|
|
set smartcase
|
|
|
|
|
|
|
|
set wildmenu
|
|
|
|
set wildmode=longest:full,full
|
|
|
|
|
|
|
|
set hidden
|
|
|
|
|
|
|
|
set background=dark
|
|
|
|
set number relativenumber
|
2018-03-31 18:23:35 +00:00
|
|
|
set nohlsearch
|
2018-03-17 23:59:01 +00:00
|
|
|
|
2018-04-21 12:54:06 +00:00
|
|
|
" set previewheight=24
|
2018-05-03 11:37:24 +00:00
|
|
|
" set splitbelow
|
2018-03-28 22:00:42 +00:00
|
|
|
|
|
|
|
set textwidth=180
|
|
|
|
set formatoptions=cq
|
|
|
|
set wrapmargin=0
|
|
|
|
|
2018-03-17 23:59:01 +00:00
|
|
|
set foldcolumn=1
|
|
|
|
|
|
|
|
set iskeyword+=-
|
|
|
|
set scrolloff=10
|
|
|
|
set showcmd
|
|
|
|
set incsearch
|
|
|
|
|
|
|
|
set laststatus=2
|
|
|
|
|
|
|
|
set foldmethod=manual
|
|
|
|
|
|
|
|
set showmode
|
|
|
|
|
|
|
|
set autoindent
|
|
|
|
set breakindent
|
2018-03-27 21:23:55 +00:00
|
|
|
set showbreak=\ \ ↳\
|
2018-03-17 23:59:01 +00:00
|
|
|
|
|
|
|
set mouse=a
|
|
|
|
|
|
|
|
set listchars=eol:¬,tab:->,trail:~,extends:>,precedes:<,space:·
|
|
|
|
|
2018-05-03 11:37:24 +00:00
|
|
|
set foldtext=MyFoldText()
|
2018-05-03 11:47:51 +00:00
|
|
|
function! MyFoldText()
|
|
|
|
let l:linecount = v:foldend - v:foldstart - 1
|
|
|
|
let l:line = getline(v:foldstart)
|
2018-05-03 13:44:13 +00:00
|
|
|
|
|
|
|
let l:prefix = '|+' . l:linecount . v:folddashes . '| '
|
|
|
|
|
|
|
|
let l:subexp = '^ \{,' . len(l:prefix) . '}'
|
|
|
|
let l:foldtext = substitute(l:line, l:subexp, l:prefix, '')
|
|
|
|
|
|
|
|
return l:foldtext
|
2018-05-03 11:37:24 +00:00
|
|
|
endfunction
|
|
|
|
|
2018-03-17 23:59:01 +00:00
|
|
|
|
|
|
|
" vim: foldmethod=marker
|