Skip to content

Instantly share code, notes, and snippets.

@adampaulukanis
Last active August 8, 2019 17:03
Show Gist options
  • Save adampaulukanis/a13a9c6fc8534904aedb4e2ba3957d08 to your computer and use it in GitHub Desktop.
Save adampaulukanis/a13a9c6fc8534904aedb4e2ba3957d08 to your computer and use it in GitHub Desktop.
my OpenBSD config files
# $OpenBSD: dot.profile,v 1.5 2018/02/02 02:29:54 yasuoka Exp $
#
# sh/ksh initialization
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games
export PATH HOME TERM
alias ls="ls -F"
export LC_CTYPE="en_US.UTF-8"
export GIT_EDITOR="vim"
export TERM="screen-256color"
export PS1="\u@\H:\w$ "
set -g default-terminal "tmux-256color"
set -as terminal-overrides ",*:U8=0"
set -g status-interval 2
set -g status-left "#S #[fg=green,bg=black]#(tmux-mem-cpu-load --colors --interval 2)#[default]"
set -g status-left-length 60
set nocompatible
filetype off
" TODO: Is there any way to test whether Vim.app was started from the Finder?
if has("gui_running")
" Get the value of $PATH from a login shell.
" If your shell is not on this list, it may be just because we have not
" tested it. Try adding it to the list and see if it works. If so,
" please post a note to the vim-mac list!
if $SHELL =~ '/\(sh\|csh\|bash\|tcsh\|zsh\)$'
let s:path = system("echo echo VIMPATH'${PATH}' | $SHELL -l")
let $PATH = matchstr(s:path, 'VIMPATH\zs.\{-}\ze\n')
endif
" Change directory on startup.
autocmd VimEnter * if getcwd()=="/" | if strlen(@%) | cd %:p:h | else | cd | endif | endif
" If running in a Terminal window, set the terminal type to allow syntax
" highlighting.
"else
" set term=ansi
endif
syntax on
filetype plugin indent on
set fileencoding=utf-8
set enc=utf-8
set spell
set spelllang=en,pl " download ftp://ftp.vim.org/pub/vim/runtime/spell/pl.utf-8.spl
set tabstop=2
set shiftwidth=2
set expandtab
set ruler
" my own rules
"
" I commented these out because if I use iTerm pressing CMD+/ will show me where
" the cursor is
"set cursorline
"set cursorcolumn
" other rules I like
set number
"set colorcolumn=81,121
set colorcolumn=121
"execute "set colorcolumn=" . join(range(81,121), ',')
highlight ColorColumn ctermbg=166
"set tw=79 " width of document (used by gd)
set nowrap " don't automatically wrap on load
set fo-=t " don't automatically wrap text when typing
set term=screen-256color
" if I want 2 lines:
"let &colorcolumn='81,' . join(range(121,333), ',')
set laststatus=2
" run JSHint when a file with .js extension is saved
" " this requires the jsHint2 plugin
"autocmd BufWritePost *.js silent :JSHint
" I want backspace to work!
" 2 same as ":set backspace=indent,eol,start"
set backspace=2
" Show line breaks and other chars
set listchars=tab:>~,nbsp:_,trail:.,eol:$
set list
" better indentations: do not loose focus after you indent
vnoremap < <gv
vnoremap > >gv
" show relative number, it looks quite good to me ;)
"set relativenumber
colorscheme desert " looks better then default one
" Autocompletion
set omnifunc=syntaxcomplete#Complete
" make work with VIM a little bit nicer ;)
set number
set cursorline
hi CursorLineNr cterm=bold ctermfg=white ctermbg=red
hi CursorLine cterm=none
set hlsearch
" get rid of arrows
noremap <Up> <Nop>
noremap <Down> <Nop>
noremap <Left> <Nop>
noremap <Right> <Nop>
! $OpenBSD: dot.Xdefaults,v 1.3 2014/07/10 10:22:59 jasper Exp $
XTerm*loginShell:true
Xft.antialias:true
XTerm*faceName: Monospace
XTerm*faceSize:18
! XTerm*background:yellow
XTerm*foreground:black
XTerm*on2Clicks: regex [^ \n]+
XTerm*saveLines:2000
! use `xfontsel -print` and choose a good font
! XTerm*Font: -misc-fixed-medium-r-normal-*-20-200-75-*-c-100-iso10646-*
XTerm.vt100.translations: #override \n\
Ctrl <Key> minus: smaller-vt-font() \n\
Ctrl <Key> plus: larger-vt-font()
XTerm*faceName: Monospace
XTerm*faceSize:18
export ENV=$HOME/.profile
xsetroot -solid green &
xv -root -quit background.jpg
xrdb -merge .Xresources
cwm
# /etc
/etc/X11/xorg.conf.d
/usr/distfiles
/usr/packages
/var/git
https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment