forked from holman/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
69 lines (53 loc) · 1.54 KB
/
.vimrc
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
" Vundle and bundles configuration
runtime bundles.vim
syntax enable
set background=dark
colorscheme solarized
let g:airline_theme='solarized'
set expandtab
set shiftwidth=2
set softtabstop=2
set pastetoggle=<F5>
set foldlevel=2
set winheight=10
set winminheight=2
set ignorecase
set smartcase
" Make gitgutter happy
set updatetime=1000
"
" Mappings
"
nmap ñr :wa\|!rake<CR>
inoremap kj <Esc>
let g:pandoc#formatting#mode = 'h'
let g:pandoc#formatting#textwitdth = 80
let g:reek_on_loading = 0
" set statusline+=%#warningmsg#
" set statusline+=%{SyntasticStatuslineFlag()}
" set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
" use // as * in visual mode
vnoremap // y/\V<C-r>=escape(@",'/\')<CR><CR>
" vim-ledger configuration
let g:ledger_bin = 'ledger'
let g:ledger_default_commodity = '$'
let g:ledger_commodity_sep = ' '
let g:ledger_date_format = '%Y-%m-%d'
let g:syntastic_java_checkers=[]
let g:ale_linters = {}
let g:ale_linters.liquid = ['theme-check-language-server']
function! ThemeCheckGetProjectRoot(buffer) abort
let l:project_root = ale#path#FindNearestFile(a:buffer, '.theme-check.yml')
return !empty(l:project_root) ? fnamemodify(l:project_root, ':h') : ''
endfunction
call ale#linter#Define('liquid', {
\ 'name': 'theme-check-language-server',
\ 'lsp': 'stdio',
\ 'executable': system('which theme-check-language-server | tr -d "\n" '),
\ 'project_root': function('ThemeCheckGetProjectRoot'),
\ 'command': '%e',
\})