Explorar el Código

Initial commit. Mostly old news, only .irbrc is quite new.

Lucas Stadler %!s(int64=14) %!d(string=hace) años
commit
3381da3992
Se han modificado 4 ficheros con 108 adiciones y 0 borrados
  1. 13 0
      .gitconfig
  2. 1 0
      .gitignore
  3. 22 0
      .irbrc
  4. 72 0
      .vimrc

+ 13 - 0
.gitconfig

@ -0,0 +1,13 @@
1
[user]
2
	name = Lucas Stadler
3
	email = mi.au@papill0n.org
4
[core]
5
	editor = vi
6
[diff]
7
	color = true
8
[merge]
9
	conflictstyle = diff3
10
[status]
11
	color = true
12
[alias]
13
	st = status --short --branch

+ 1 - 0
.gitignore

@ -0,0 +1 @@
1
*

+ 22 - 0
.irbrc

@ -0,0 +1,22 @@
1
require 'irb/completion'
2
3
# Some improvements to irb (coloring + ???)
4
require 'wirb'
5
Wirb.start
6
7
# Make irb's history persistent
8
irbhistory = File.join Dir.home, ".irbhistory"
9
10
last_history = File.read irbhistory rescue ""
11
last_history.lines.each do |line|
12
  Readline::HISTORY.push line.strip
13
end
14
15
def save_history
16
  puts "Writing history back..."
17
  File.write irbhistory, Readline::HISTORY.to_a.uniq.reduce { |x,y| "#{x}\n#{y}" }
18
end
19
20
at_exit do
21
  save_history
22
end

+ 72 - 0
.vimrc

@ -0,0 +1,72 @@
1
" Indent without helping me.
2
set autoindent
3
4
" Incremental search is *awesome*
5
set incsearch
6
7
" Have tabs 3 chars long...
8
set tabstop=3
9
set shiftwidth=3
10
11
set copyindent
12
13
" Wrap lines automatically
14
set textwidth=72
15
16
" Don't let me further than 1 line towards the end or the beginning.
17
set scrolloff=1
18
19
" Have syntax highlighting and non-vi features
20
syntax on
21
set nocompatible
22
23
set fileencodings=utf-8
24
25
" Allow me to delete with backspace
26
set backspace=indent,eol,start
27
28
"""
29
call pathogen#runtime_append_all_bundles()
30
31
""" Mappin' stuff around a little bit (please :)
32
map q :quit<CR>
33
map Q :quitall<CR>
34
" Note the space after ':tabnew' ;)
35
"map t :tabnew 
36
noremap <Space> :NERDTree<CR>
37
noremap <c-b> :make<CR>
38
noremap <c-t> :CommandT<CR>
39
noremap <c-n> :tabnew<CR>:CommandT<CR>
40
noremap <c-f> :!ack 
41
42
""" Filetype specific stuff comes now...
43
44
" Have Vala highlighted, too
45
autocmd BufRead *.{vala,vapi} set efm=%f:%l.%c-%[%^:]%#:\ %t%[%^:]%#:\ %m
46
au BufRead,BufNewFile *.{vala,vapi} setfiletype vala
47
48
" And now some *really* fancy completion stuff
49
" (Of course I've not written this ;)
50
set runtimepath+=/home/mimi/t/vim/vim-ruby
51
augroup rubyish
52
	au BufNewFile,BufRead *.rb set omnifunc=rubycomplete#Complete
53
	au BufNewFile,BufRead *.rb set makeprg=ruby\ %
54
	au BufNewFile,BufRead *.rb map <C-X> :make<CR>
55
	au BufNewFile,BufRead *.rb set ts=2 sw=2 expandtab
56
augroup END
57
58
au BufNewFile,BufRead *.n3 set ft=n3
59
au BufNewFile,BufRead *.asd set ft=lisp
60
au BufNewFile,BufRead *.citrus set ft=citrus
61
62
au BufNewFile,BufRead *.{hs,lhs,chs} set ts=4 sw=4 expandtab
63
64
" ZenCoding. Very fast tag structure creating and friends..
65
autocmd BufNewFile,BufRead *.{html,css,xml} runtime plugin/zencoding.vim
66
67
autocmd BufNewFile,BufRead *.arc set ft=lisp
68
69
" Local .vimrc files
70
if filereadable('.vimrc')
71
	source .vimrc
72
endif