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
|
|
|
|
|
2020-11-25 04:13:01 +00:00
|
|
|
colo elflord
|
2020-02-05 01:22:43 +00:00
|
|
|
set guifont="JetBrains Mono"
|
|
|
|
set noerrorbells visualbell t_vb=
|
|
|
|
set mouse+=a
|
2019-06-25 01:21:33 +00:00
|
|
|
|
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
|
|
|
|
|
2020-02-05 01:22:43 +00:00
|
|
|
set ignorecase
|
|
|
|
set smartcase
|
2018-08-16 23:05:54 +00:00
|
|
|
set incsearch
|
|
|
|
|
2019-03-12 19:36:33 +00:00
|
|
|
set number
|
2020-02-05 01:22:43 +00:00
|
|
|
set relativenumber
|
2019-03-12 19:36:33 +00:00
|
|
|
set numberwidth=4
|
|
|
|
set updatetime=100
|
2018-08-16 23:05:54 +00:00
|
|
|
set laststatus=2
|
|
|
|
set ruler
|
|
|
|
set wildmenu
|
2021-01-10 18:10:53 +00:00
|
|
|
set showcmd
|
2018-08-16 23:05:54 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-02-05 01:22:43 +00:00
|
|
|
nmap Q <Nop> " 'Q' in normal mode enters Ex mode. you almost never want this
|
|
|
|
|
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
|
|
|
|
|
2020-06-15 18:45:09 +00:00
|
|
|
set hidden
|
|
|
|
nnoremap <C-N> :bnext<CR>
|
|
|
|
nnoremap <C-P> :bprev<CR>
|
|
|
|
|
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:
|
|
|
|
|