2017-02-19 10:20:24 +01:00
|
|
|
|
set ai
|
|
|
|
|
" Disable (ab)use of X11 selection
|
|
|
|
|
set clipboard=
|
2024-05-11 16:51:18 +02:00
|
|
|
|
set colorcolumn=72,80,100,132
|
2017-02-19 10:20:24 +01:00
|
|
|
|
set comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,n:\|
|
2023-08-18 11:39:47 +02:00
|
|
|
|
set expandtab
|
2017-02-19 10:20:24 +01:00
|
|
|
|
set exrc
|
2021-10-08 10:32:32 +02:00
|
|
|
|
set hls
|
2017-02-19 10:20:24 +01:00
|
|
|
|
set list
|
|
|
|
|
set listchars=tab:»·,trail:·
|
|
|
|
|
set modeline
|
|
|
|
|
set nojoinspaces
|
2017-10-16 18:02:03 +02:00
|
|
|
|
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
|
2017-09-27 13:32:44 +02:00
|
|
|
|
set scrolloff=5
|
2017-02-19 10:20:24 +01:00
|
|
|
|
set secure
|
|
|
|
|
set sm
|
|
|
|
|
set sw=4
|
2017-08-16 16:32:08 +02:00
|
|
|
|
set viminfo='100,<50,s10,h,%
|
2017-10-19 12:23:16 +02:00
|
|
|
|
|
2017-09-27 13:32:44 +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"
|
|
|
|
|
colorscheme hjp
|
2022-05-12 16:18:05 +02:00
|
|
|
|
set bg=light
|
2019-05-18 10:25:23 +02:00
|
|
|
|
syntax on
|
|
|
|
|
elseif $BG == "dark"
|
2019-05-18 10:33:09 +02:00
|
|
|
|
colorscheme default
|
2022-05-12 16:18:05 +02:00
|
|
|
|
set bg=dark
|
2023-10-13 10:44:19 +02:00
|
|
|
|
colorscheme hjp-dark
|
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
|
2020-11-12 15:11:57 +01:00
|
|
|
|
map! [27;5;101~ >I<yypa/O
|
2017-02-19 10:20:24 +01:00
|
|
|
|
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
|
2020-03-26 14:55:30 +01:00
|
|
|
|
|
|
|
|
|
autocmd BufRead,BufNewFile *.ts set filetype=javascript
|
|
|
|
|
autocmd FileType javascript set sw=2
|
2022-04-23 01:10:36 +02:00
|
|
|
|
autocmd FileType javascript set tw=132
|
2020-03-26 14:55:30 +01:00
|
|
|
|
|
|
|
|
|
autocmd FileType html set sw=2
|
2020-03-27 10:53:34 +01:00
|
|
|
|
|
|
|
|
|
autocmd FileType crontab set tw=0
|
2020-11-12 15:16:23 +01:00
|
|
|
|
|
|
|
|
|
autocmd BufRead,BufNewFile redmine*.txt set filetype=textile
|
|
|
|
|
autocmd FileType textile set tw=0 linebreak
|
2021-01-29 16:02:37 +01:00
|
|
|
|
|
|
|
|
|
autocmd FileType python set tw=79
|
2022-05-05 16:23:39 +02:00
|
|
|
|
|
|
|
|
|
autocmd FileType css set iskeyword+=-
|