Created
June 8, 2012 14:27
-
-
Save glaforge/2895893 to your computer and use it in GitHub Desktop.
My current .vimrc configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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