Skip to content

Instantly share code, notes, and snippets.

@glaforge
Created June 8, 2012 14:27
Show Gist options
  • Save glaforge/2895893 to your computer and use it in GitHub Desktop.
Save glaforge/2895893 to your computer and use it in GitHub Desktop.
My current .vimrc configuration
let mapleader = ","
let g:mapleader=","
set number
set expandtab
set shiftwidth=4
set tabstop=4
set smarttab
set ai "Auto indent
set si "Smart indent
set ruler
set hlsearch
set nocompatible
set bs=2
set autoread
set so=7
filetype on
filetype indent on
filetype plugin on
set guifont=Inconsolata:h16
autocmd! bufwritepost .vimrc source ~/.vimrc
syntax enable
au BufNewFile,BufRead *.gradle set filetype=groovy
function! RunGroovy()
let gfname=@%
botright new
setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile nowrap
let gtmpf = tempname()
let gcmd = ':!groovy ' . gfname . ' > ' . gtmpf
silent execute gcmd
silent execute '0r ' . gtmpf
endfunction
map <silent> <F5> <Esc>:call RunGroovy()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment