dot/.vimrc

44 lines
814 B
VimL
Raw Normal View History

2017-02-19 10:20:24 +01:00
set ai
" Disable (ab)use of X11 selection
set clipboard=
set comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,n:\|
set exrc
set list
set listchars=tab:»·,trail
set modeline
set nojoinspaces
set nrformats-=octal
set nrformats+=hex
2017-02-19 10:20:24 +01:00
set nu
set printoptions=paper:A4,formfeed:y,portrait:n,number:y,left:10mm,right:10mm
set ruler
set scrolloff=5
2017-02-19 10:20:24 +01:00
set secure
set sm
set sw=4
set viminfo='100,<50,s10,h,%
2017-10-19 12:23:16 +02:00
if has('reltime')
set incsearch
endif
2017-10-19 12:23:16 +02:00
2019-05-18 10:25:23 +02:00
if $BG == "light"
set bg=light
colorscheme hjp
syntax on
elseif $BG == "dark"
set bg=dark
2019-05-18 10:33:09 +02:00
colorscheme default
2019-05-18 10:25:23 +02:00
syntax on
endif
2017-02-19 10:20:24 +01:00
map <F7> :cp
map <F8> :cn
map!  >I<yypa/O
autocmd FileType perl let perl_fold=1
autocmd FileType perl syntax on
2019-08-03 18:01:43 +02:00
autocmd FileType go set sw=8
autocmd FileType go set tw=79
autocmd FileType go set noexpandtab