Skip to content

Instantly share code, notes, and snippets.

View manelvf's full-sized avatar

Manel Vilar manelvf

View GitHub Profile
@manelvf
manelvf / .vimrc
Last active October 4, 2015 13:37
.vimrc Spring 2013
set nocompatible
set smartindent
set expandtab " convert tabs to spaces
set shiftwidth=4 " four spaces for a tab
set tabstop=4
autocmd BufEnter *.py set ai sw=4 ts=4 sta et fo=croql
let mapleader=","
@manelvf
manelvf / import.sh
Created March 7, 2012 18:08
Script to check for changes in log
file1= "..." # old log file
file2= "..." # new log file
url= "..."
mail= "..."
rm ${file1}
mv ${file2} ${file1}
nice curl ${url} > ${file2} # execute process and write output in file2
@manelvf
manelvf / vimrc
Created October 5, 2009 15:33
My Vimrc
if &cp | set nocp | endif
let s:cpo_save=&cpo
set cpo&vim
map! <S-Insert> <MiddleMouse>
nmap gx <Plug>NetrwBrowseX
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("<cWORD>"),0)
map <S-Insert> <MiddleMouse>
iabbr ms Microsoft
let &cpo=s:cpo_save