2018-05-21 20:55:40 +00:00
|
|
|
scriptencoding utf-8
|
2018-03-17 23:59:01 +00:00
|
|
|
set ttyfast
|
|
|
|
|
2018-05-21 20:55:40 +00:00
|
|
|
if &term ==? 'xterm-256color'
|
2018-03-17 23:59:01 +00:00
|
|
|
set termguicolors
|
|
|
|
endif
|
|
|
|
|
|
|
|
syntax on
|
2018-05-10 15:34:55 +00:00
|
|
|
set background=light
|
2018-05-06 21:38:21 +00:00
|
|
|
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 number relativenumber
|
2018-08-18 15:10:51 +00:00
|
|
|
set hlsearch
|
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
|
|
|
|
2018-06-07 21:44:15 +00:00
|
|
|
set completeopt=longest,menuone
|
2018-06-08 11:24:47 +00:00
|
|
|
set completeopt-=preview
|
2018-06-07 21:44:15 +00:00
|
|
|
|
2018-06-08 20:01:39 +00:00
|
|
|
set nospell
|
2018-08-15 12:08:05 +00:00
|
|
|
set spelllang=en_gb
|
2018-06-08 20:01:39 +00:00
|
|
|
set dictionary+=/usr/share/dict/brit-a-z.txt,/usr/share/dict/britcaps.txt
|
2018-06-08 20:17:04 +00:00
|
|
|
set thesaurus+=/usr/share/dict/mthesaur.txt
|
2018-06-08 20:01:39 +00:00
|
|
|
|
2018-09-02 15:11:29 +00:00
|
|
|
function! GetGitRoot() abort
|
|
|
|
let gitroot=system("git rev-parse --show-toplevel")
|
|
|
|
if gitroot=~?"^fatal"
|
|
|
|
let gitstring = system("echo ${PWD/#$HOME/'~'}") . "/"
|
|
|
|
let gitstring .= expand("%t")
|
|
|
|
else
|
|
|
|
let gitstring = system("echo ${PWD/#$HOME/'~'}") . "/"
|
|
|
|
let gitstring .= expand("%t")
|
|
|
|
let gitstring .= " [ " . system("git branch | grep '*' | cut -d ' ' -f2")
|
|
|
|
let gitstring .= " ] ( " . system('basename "' . gitroot . '"') . " )"
|
|
|
|
endif
|
|
|
|
return gitstring
|
|
|
|
endfunction
|
|
|
|
let &titlestring="%{GetGitRoot()}"
|
|
|
|
set title
|
2018-06-08 20:01:39 +00:00
|
|
|
|
2018-05-28 20:04:23 +00:00
|
|
|
set tabstop=8
|
|
|
|
set softtabstop=2
|
|
|
|
set shiftwidth=2
|
|
|
|
set shiftround
|
|
|
|
set expandtab
|
|
|
|
set autoindent
|
|
|
|
|
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
|
2018-05-11 22:50:42 +00:00
|
|
|
set signcolumn=yes
|
2018-08-14 12:08:19 +00:00
|
|
|
set colorcolumn=80
|
2018-03-17 23:59:01 +00:00
|
|
|
|
|
|
|
set iskeyword+=-
|
|
|
|
set scrolloff=10
|
|
|
|
set showcmd
|
|
|
|
set incsearch
|
|
|
|
|
|
|
|
set laststatus=2
|
2018-08-21 18:06:27 +00:00
|
|
|
set shortmess=aoOT
|
|
|
|
set cmdheight=2
|
2018-03-17 23:59:01 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2018-05-28 20:04:23 +00:00
|
|
|
set listchars=eol:¬,tab:>-,trail:~,extends:>,precedes:<,space:·
|
2018-03-17 23:59:01 +00:00
|
|
|
|
2018-05-03 11:37:24 +00:00
|
|
|
set foldtext=MyFoldText()
|
2018-03-17 23:59:01 +00:00
|
|
|
|
|
|
|
" vim: foldmethod=marker
|