Skip to content

Instantly share code, notes, and snippets.

@martialboniou
Created March 25, 2012 13:34
Show Gist options
  • Save martialboniou/2193962 to your computer and use it in GitHub Desktop.
Save martialboniou/2193962 to your computer and use it in GitHub Desktop.
temporary simple vimrc workaround
" .vimrc
if has('win32') || has('win64')
set runtimepath=$HOME/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles
if has('gui_running')
if filereadable("C:\\Windows\\Fonts\\DejaVuSansMono.ttf")
set guifont=DejaVu_Sans_Mono:h10
elseif
set guifont=Consolas:h9:cANSI
endif
endif
endif
if &t_Co == 256 || has("gui_running")
colorscheme wombat256mod
endif
if has('gui_running')
set lines=40
set guioptions-=T
set guioptions+=c
set guioptions-=m
set guioptions-=r
set guioptions-=R
set guioptions-=l
set guioptions-=L
endif
set encoding=utf-8
set fileencodings=utf-8
set nocompatible
set background=dark
set history=1000
set clipboard+=unnamed
set ffs=unix,mac,dos
set viminfo+=!
set scrolloff=3
set noswapfile
set sw=2
set backup
set sts=4
set ts=4
set shortmess=atI
silent execute '!umask 027; mkdir -p '.$HOME.'/.vim/{backup,doc,tmp,views}'
set backupdir=$HOME."/.vim/backup"
set directory=$HOME."/.vim/tmp"
set viewdir=$HOME."/.vim/views/"
helptags $HOME."/.vim/doc"
set incsearch
set ignorecase
set smartcase
set lsp=0
set wildmenu
set wildmode=longest,list,full
set wildignore+=*.o,*.obj
set hidden
set ruler
set cmdheight=2
set lz
set hid
set backspace=indent,eol,start
set mouse=a
set report=0
set noerrorbells
set showmatch
set cpoptions-=m
set mat=5
set nohlsearch
set novisualbell
set statusline=%F%m%r%h%w\ \{%04l:%04v\}\ [%Y]\ [%{&ff}]\ [code:\%03.3b]\ --\ %p%%
set laststatus=2
set fo=tcrqn
set ai
set si
set cindent
set nojoinspaces
set nocp
set number
set cursorline
set whichwrap=b,s,<,>,[,]
set bufhidden=hide
set equalalways
set splitbelow splitright
set isfname+=32
set sessionoptions+=winpos
set sessionoptions-=folds
"set foldenable
set foldmethod=indent
"set foldlevel=100
"set foldopen-=search
set foldopen-=undo
set foldminlines=2
set fillchars=fold:=
"set foldtext=TODO()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment