64 lines
1.3 KiB
VimL
64 lines
1.3 KiB
VimL
set ai
|
||
" Disable (ab)use of X11 selection
|
||
set clipboard=
|
||
set colorcolumn=72,80,100,132
|
||
set comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,n:\|
|
||
set expandtab
|
||
set exrc
|
||
set hls
|
||
set list
|
||
set listchars=tab:»·,trail:·
|
||
set modeline
|
||
set nojoinspaces
|
||
set nrformats-=octal
|
||
set nrformats+=hex
|
||
set nu
|
||
set printoptions=paper:A4,formfeed:y,portrait:n,number:y,left:10mm,right:10mm
|
||
set ruler
|
||
set scrolloff=5
|
||
set secure
|
||
set sm
|
||
set sw=4
|
||
set viminfo='100,<50,s10,h,%
|
||
|
||
if has('reltime')
|
||
set incsearch
|
||
endif
|
||
|
||
if $BG == "light"
|
||
colorscheme hjp
|
||
set bg=light
|
||
syntax on
|
||
elseif $BG == "dark"
|
||
colorscheme default
|
||
set bg=dark
|
||
colorscheme hjp-dark
|
||
syntax on
|
||
endif
|
||
|
||
map <F7> :cp
|
||
map <F8> :cn
|
||
map! >I<yypa/O
|
||
map! [27;5;101~ >I<yypa/O
|
||
autocmd FileType perl let perl_fold=1
|
||
autocmd FileType perl syntax on
|
||
|
||
autocmd FileType go set sw=8
|
||
autocmd FileType go set tw=79
|
||
autocmd FileType go set noexpandtab
|
||
|
||
autocmd BufRead,BufNewFile *.ts set filetype=javascript
|
||
autocmd FileType javascript set sw=2
|
||
autocmd FileType javascript set tw=132
|
||
|
||
autocmd FileType html set sw=2
|
||
|
||
autocmd FileType crontab set tw=0
|
||
|
||
autocmd BufRead,BufNewFile redmine*.txt set filetype=textile
|
||
autocmd FileType textile set tw=0 linebreak
|
||
|
||
autocmd FileType python set tw=79
|
||
|
||
autocmd FileType css set iskeyword+=-
|