Skip to content

Instantly share code, notes, and snippets.

@nyaray
Created July 27, 2012 10:26
Show Gist options
  • Save nyaray/3187320 to your computer and use it in GitHub Desktop.
Save nyaray/3187320 to your computer and use it in GitHub Desktop.
Basic vim-settings.
" Making le sense
set encoding=utf-8
" File things
set backupdir=~/.vim/backup
set swapfile
set dir=~/.vim/temp
" Behaviour
set nocompatible
" GUI
set number
set guioptions=
set visualbell
" Visual stuff
set t_Co=256
set showcmd
set bg=dark
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set list
set listchars=tab:>·,trail:·
set colorcolumn=78
colorscheme desert
" No arrow keys!
map <Up> <nop>
map <Down> <nop>
map <Left> <nop>
map <Right> <nop>
imap <Up> <nop>
imap <Down> <nop>
imap <Left> <nop>
imap <Right> <nop>
" Erlang stuff
set wildignore+=*.beam,*.dump,.eunit,deps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment