-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_vimrc
94 lines (81 loc) · 2.73 KB
/
dot_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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
" Settings {{{
set number " Show line numbers
set linebreak " Break lines at word (requires Wrap lines)
set showbreak=…\ " Wrap-broken line prefix
" temporarily disabled for testing
"set showmatch " Highlight matching brace
set hlsearch " Highlight all search results
set smartcase " Enable smart-case search
set ignorecase " Always case-insensitive
set incsearch " Searches for strings incrementally
set autoindent " Auto-indent new lines
set expandtab " Use spaces instead of tabs
set shiftwidth=2 " Number of auto-indent spaces
set smartindent " Enable smart-indent
set smarttab " Enable smart-tabs
set softtabstop=2 " Number of spaces per Tab
set ruler " Show row and column ruler information
set undolevels=1000 " Number of undo levels
set backspace=indent,eol,start " Backspace behaviour
set cursorline cursorlineopt=screenline
" Keep cursor centered on screen
augroup VCenterCursor
au!
au BufEnter,WinEnter,WinNew,VimResized *,*.*
\ let &scrolloff=winheight(win_getid())/2
augroup END
" }}}
" Plugins {{{
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin() " Plugins
Plug 'vimwiki/vimwiki'
call plug#end()
" }}}
" Theme {{{
" Support all of the colours if you can
if (has("termguicolors"))
set termguicolors
endif
colorscheme nofrils-acme
" }}}
" Vimwiki
set nocompatible
filetype plugin on
syntax on
let wiki1 = {}
let wiki1.path = '~/vimwiki'
let wiki1.name = 'Journal'
let wiki1.auto_toc = 1
let wiki1.diary_rel_path = 'journal/'
let wiki1.diary_index = 'index'
let wiki1.auto_diary_index = 1
let wiki1.auto_generate_links = 1
let wiki1.bullet_types = ['-', '*', '·']
let wiki2 = {}
let wiki2.path = '~/Projects/www'
let wiki2.name = 'mimuki.net'
let wiki2.auto_toc = 1
let wiki2.diary_rel_path = 'journal/'
let wiki2.diary_index = 'index'
let wiki2.auto_diary_index = 1
let wiki2.auto_generate_links = 1
let wiki2.bullet_types = ['-', '*', '·']
let wiki2.auto_export = 1
let wiki2.space_char = '_'
let wiki2.template_path = '~/Projects/www/templates/'
let wiki2.template_default = 'template'
let wiki2.template_ext = '.html'
let g:vimwiki_auto_header = 1
let g:vimwiki_toc_header_level = 2
let g:vimwiki_dir_link = 'index'
let g:vimwiki_conceal_pre = 1
let g:vimwiki_text_ignore_newline = 0
let g:vimwiki_toc_link_format = 1
let g:vimwiki_list = [ wiki1, wiki2]
" }}}
" yoinked this from the gruvbox config, it makes the collapsy thingy go
" vim: set sw=2 ts=2 sts=2 et tw=80 ft=vim fdm=marker: