blob: e7c5e38a45a47c1d6a7eae2442209be5d3b1f43b (
plain)
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
|
set number relativenumber
filetype plugin on
syntax enable
set tabstop=8
set cursorline
set lazyredraw
set incsearch
set hlsearch
set autoindent
set scrolloff=3
set spelllang=en
set spell
set tw=70
set ruler
set foldmethod=marker
set list
set listchars=eol:\ ,tab:\|\ ,trail:~,extends:>,precedes:<,space:·
map K i<enter><esc>
map W <esc>:WordCount<enter>
colorscheme elflord
au BufRead,BufNewFile *.go set filetype=go
au BufRead,BufNewFile *.ldg set filetype=ledger
function LedgerSort()
:%! ledger -f - print --sort 'date, amount'
:%LedgerAlign
:%s/^ /\t/g
endfunction
command LedgerSort call LedgerSort()
filetype plugin on
nmap <C-S-P> :call <SID>SynStack()<CR>
function! <SID>SynStack()
if !exists("*synstack")
return
endif
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
endfunc
|