vim/vimrc.d/settings.vim

75 lines
1.1 KiB
VimL

set ttyfast
if &term == 'xterm-256color'
set termguicolors
endif
syntax on
colorscheme monotonous
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
set nohlsearch
" set previewheight=24
" set splitbelow
set textwidth=180
set formatoptions=cq
set wrapmargin=0
set foldcolumn=1
set iskeyword+=-
set scrolloff=10
set showcmd
set incsearch
set laststatus=2
set foldmethod=manual
set showmode
set autoindent
set breakindent
set showbreak=\ \ ↳\
set mouse=a
set listchars=eol,tab:->,trail:~,extends:>,precedes:<,space
set foldtext=MyFoldText()
function! MyFoldText()
let l:linecount = v:foldend - v:foldstart - 1
let l:line = getline(v:foldstart)
return v:folddashes . ' ' . l:line . ' |+' . l:linecount . '|'
endfunction
" vim: foldmethod=marker