2019-10-23 20:55:44 +00:00
|
|
|
" posix compatibility
|
|
|
|
if &shell =~# 'fish$'
|
|
|
|
set shell=sh
|
|
|
|
endif
|
|
|
|
|
2018-08-16 23:05:54 +00:00
|
|
|
filetype plugin indent on
|
|
|
|
|
|
|
|
syntax enable
|
|
|
|
|
2019-06-25 01:21:33 +00:00
|
|
|
colo ron
|
|
|
|
set guifont="Input"
|
|
|
|
|
2020-01-06 18:18:26 +00:00
|
|
|
set spell
|
2018-08-16 23:05:54 +00:00
|
|
|
set autoindent
|
|
|
|
set backspace=indent,eol,start
|
|
|
|
set complete-=i
|
|
|
|
set smarttab
|
2018-09-24 14:54:58 +00:00
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|
|
|
|
set expandtab
|
2019-08-13 21:06:27 +00:00
|
|
|
|
|
|
|
" swap settings
|
|
|
|
set swapfile
|
|
|
|
set directory^=~/.vim/swap//
|
|
|
|
set writebackup
|
|
|
|
set nobackup
|
|
|
|
set backupcopy=auto
|
|
|
|
" patch required to honor double slash
|
|
|
|
if has("patch-8.1.0251")
|
|
|
|
" consolidate writebackups
|
|
|
|
set backupdir^=~/.vim/backup//
|
|
|
|
end
|
2019-04-09 04:15:36 +00:00
|
|
|
set undofile
|
|
|
|
set undodir=~/.vim/undodir
|
2018-08-16 23:05:54 +00:00
|
|
|
|
|
|
|
set nrformats-=octal
|
|
|
|
|
|
|
|
set incsearch
|
|
|
|
|
2019-03-12 19:36:33 +00:00
|
|
|
set number
|
|
|
|
set numberwidth=4
|
|
|
|
set updatetime=100
|
2018-08-16 23:05:54 +00:00
|
|
|
set laststatus=2
|
|
|
|
set ruler
|
|
|
|
set wildmenu
|
|
|
|
|
|
|
|
set display+=lastline
|
|
|
|
|
|
|
|
set encoding=utf-8
|
|
|
|
|
|
|
|
set autoread
|
|
|
|
|
|
|
|
set history=1000
|
|
|
|
set tabpagemax=50
|
|
|
|
|
2019-03-12 05:58:05 +00:00
|
|
|
noremap 0 ^
|
|
|
|
noremap ^ 0
|
|
|
|
|
2019-08-13 21:06:27 +00:00
|
|
|
" shortcuts for 3way merge
|
|
|
|
map <Leader>1 :diffget LOCAL<CR>
|
|
|
|
map <Leader>2 :diffget BASE<CR>
|
|
|
|
map <Leader>3 :diffget REMOTE<CR>
|
|
|
|
|
|
|
|
if has("patch-8.1.0360")
|
|
|
|
set diffopt+=internal,algorithm:patience
|
|
|
|
end
|
|
|
|
|
2018-08-16 23:05:54 +00:00
|
|
|
inoremap <C-U> <C-G>u<C-U>
|
|
|
|
|
2018-09-25 20:09:27 +00:00
|
|
|
cmap w!! w !sudo tee % >/dev/null
|
|
|
|
|
2018-08-21 14:30:32 +00:00
|
|
|
set rtp+=~/.fzf
|
|
|
|
|
2019-03-12 05:58:05 +00:00
|
|
|
execute pathogen#infect()
|
|
|
|
|
|
|
|
let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
|
|
|
|
|
2018-08-16 23:05:54 +00:00
|
|
|
" vim:set ft=vim et sw=2:
|
|
|
|
|