Skip to content

Instantly share code, notes, and snippets.

@preaction
Created November 18, 2010 15:53
Show Gist options
  • Select an option

  • Save preaction/705160 to your computer and use it in GitHub Desktop.

Select an option

Save preaction/705160 to your computer and use it in GitHub Desktop.
"----------------------------------------------------------------------------
" Common settings
colorscheme pablo
set autoindent " Auto-indent on
set nocompatible " Use vim addvance settings
set tabstop=8 " Use 8 spaces for tabs
set shiftwidth=4 " 4 spaces for autoindent
set softtabstop=4 " Use soft tabs
set expandtab " Use spaces instead of tabs
set smartindent " Use smart indent
set number " Show numbering
set nowrap " Don't wrap long lines
set incsearch " Incremental search
set showcmd " Show panding commands
set cmdheight=1 " lines for command window
set laststatus=2 " Always show status line
set backspace=indent,eol,start " Backspace over everyting
set history=100 " Save at most XX commands
set ruler " show ruler
set showmatch " Display matching paren
set matchtime=2 " Be breif when displaying the match
set nobackup " No backups
set visualbell " Use visual bell
set viminfo=@200,'100,f1,rb:,:100,/100 " Vim info options
set autoread " Re-read if modified
set backupcopy=yes " Save resources
set diffopt=filler,iwhite " Diff options
set nostartofline " Keep cursor column when moving
set scrolloff=0 " Keep context lines
set pastetoggle=<F10> " Toggle paste
set fileformats=unix,dos " File formats
set showtabline=2 " Always show tab bar
set ignorecase " Ignore case by default
set list " Show tabs and EOL
set listchars=eol:¬,tab:>-,trail:…,extends:»,precedes:«
set equalprg=perltidy " Use 'perltidy' when = is pressed
syntax on " Syntax Highlight on
filetype plugin on
set guioptions-=e
set guioptions-=T
set guioptions+=ac
set guifont=Inconsolata:h14
" Use ack for :grep
set grepprg=ack\ -a
"----------------------------------------------------------------------------
" Module settings
" Perlhelp
let perl_include_pod=1
"----------------------------------------------------------------------------
" Macros
" Jump to where a sub is defined
"nmap gx yiw/^\(sub\<Bar>function\)\s\+<C-R>"<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment