-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
48 lines (46 loc) · 1.2 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
require 'date'
require 'fileutils'
task :install do
puts 'Installing attomosvim'
vimrc = File.expand_path('~/.vimrc')
puts vimrc
now = DateTime.now.strftime('%d-%m-%Y')
backup_vimrc = File.expand_path("~/vimrc_#{now}")
if File.exist?(vimrc)
FileUtils.mv(vimrc, backup_vimrc)
end
File.new(vimrc, 'w').tap do |f|
f.write %q{" vim: set sw=4 ts=4 sts=4 et tw=78 foldmarker={{{,}}} foldlevel=0 foldmethod=marker spell:
source ~/.attomosvim/vimrc
set sh=/usr/local/bin/bash
set bg=dark
colorscheme dtinth256
source ~/.attomosvim/good_highlight.vim
let g:languagetool_jar="~/src/LanguageTool-2.7/languagetool-commandline.jar"
" hi Visual guifg=NONE guibg=#FFDB9D guisp=#3c414c gui=NONE ctermfg=NONE ctermbg=222 cterm=NONE
nnoremap zg <NOP>
" Airline {{{
let g:airline_theme = 'dark'
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
let g:airline#extensions#hunks#non_zero_only = 1
let g:airline_powerline_fonts=1
let g:airline_mode_map = {
\ '__' : '-',
\ 'n' : 'N',
\ 'i' : 'I',
\ 'R' : 'R',
\ 'c' : 'C',
\ 'v' : 'V',
\ 'V' : 'V',
\ '' : 'V',
\ 's' : 'S',
\ 'S' : 'S',
\ '' : 'S',
\ }
" }}}
}
end
end