-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
64 lines (51 loc) · 1.4 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
set nocompatible
syntax on
let mapleader = ","
set undodir=~/.cache/vim/undo//
set backupdir=~/.cache/vim/backup//
set directory=~/.cache/vim/swap//
hi LineNr ctermfg=DarkGrey
set list listchars=tab:>-,trail:~,extends:>,precedes:<
filetype plugin on
filetype indent on
set mouse=a
set showcmd
set statusline=
set laststatus=0
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set number relativenumber
set ai
set si
set wrap
set wildmenu
set wildignore=*.docx,*.jpg,*.png,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
set lazyredraw
set showmatch
set mat=2
set incsearch
set hlsearch
set ignorecase
set nofoldenable
set foldmethod=syntax
let g:markdown_folding = 1
let g:vimwiki_folding = 'syntax'
call plug#begin()
Plug 'tools-life/taskwiki'
call plug#end()
vmap <C-c> "+y
set clipboard=unnamedplus
nnoremap <space> za
nnoremap j gj
nnoremap k gk
nnoremap <F3> :r! date "+\%A, \%d \%B \%Y"<CR>
nnoremap <leader>tr :TaskWikiBufferLoad<CR>
let g:vimwiki_list = [{'path': '~/Documents/Sync/vimwiki/', 'syntax': 'markdown', 'ext': '.md', 'auto_toc': 1}]
let g:vimwiki_global_ext = 0
let g:vimwiki_toc_header_level = 2
let g:taskwiki_taskrc_location = '~/.config/task/taskrc'
let g:taskwiki_data_location = '~/Documents/Sync/.task'
let g:taskwiki_sort_order = 'status+,urgency-,priority-,end+,due+,project+'
au BufNewFile ~/Documents/Sync/vimwiki/diary/*.md :silent 0r !~/.vim/bin/generate-vimwiki-diary-template.sh '%'