forked from bresilla/dotfiles_old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.spacevim
101 lines (87 loc) · 2.49 KB
/
.spacevim
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
95
96
97
98
99
100
101
set nocompatible
filetype plugin on
syntax on
let mapleader = "\<Space>"
set encoding=utf8
set guifont=Fira\ Code\ 11
set laststatus=2
set viminfo=""
function! UserInit()
Plug 'junegunn/seoul256.vim'
Plug 'vim-airline/vim-airline-themes'
Plug 'vim-airline/vim-airline'
Plug 'edkolev/tmuxline.vim'
Plug 'edkolev/promptline.vim'
Plug 'scrooloose/nerdtree'
Plug 'ryanoasis/vim-devicons'
Plug 'scrooloose/syntastic'
Plug 'dbgx/lldb.nvim'
Plug 'Yggdroot/indentLine'
Plug 'SirVer/ultisnips'
Plug 'majutsushi/tagbar'
Plug 'tpope/vim-surround'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
Plug 'easymotion/vim-easymotion'
Plug 'kien/ctrlp.vim'
Plug 'raimondi/delimitmate'
Plug 'sheerun/vim-polyglot'
Plug 'francoiscabrol/ranger.vim'
Plug 'rbgrouleff/bclose.vim'
Plug 'othree/xml.vim'
Plug 'godlygeek/tabular'
Plug 'plasticboy/vim-markdown'
Plug 'powerman/vim-plugin-viewdoc'
Plug 'rhysd/vim-grammarous'
Plug 'vimwiki/vimwiki'
Plug 'vim-pandoc/vim-pandoc'
Plug 'vim-pandoc/vim-pandoc-syntax'
Plug 'reedes/vim-pencil'
Plug 'godlygeek/tabular'
Plug 'plasticboy/vim-markdown'
Plug '907th/vim-auto-save'
endfunction
let spacevim_plug_home = '~/.vim/plugged'
let g:spacevim_layers = [
\ 'fzf', 'unite', 'better-defaults',
\ 'which-key', 'airline',
\ ]
if g:spacevim_gui
Layer 'airline'
endif
augroup programm
autocmd!
autocmd FileType cpp,python TagbarToggle
augroup END
augroup markdown
autocmd!
autocmd FileType markdown,tex,wiki AutoSaveToggle
autocmd FileType markdown,tex,wiki Pencil
autocmd FileType markdown,tex,wiki set spelllang=en_gb spell
augroup END
function! UserConfig()
hi Normal guibg=NONE ctermbg=NONE
let g:airline_powerline_fonts=1
let g:airline_theme='jellybeans'
if has('termguicolors')
set termguicolors
if g:spacevim_tmux
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
endif
endif
endfunction
map <C-n> :NERDTreeToggle<CR>
let g:vimwiki_list = [{'path': '~/Dots/.assets/.notes/', 'syntax': 'markdown', 'ext': '.wiki'}]
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_cpp_compiler = 'clang++'
let g:syntastic_cpp_compiler_options = ' -std=c++11 -stdlib=libc++'
let g:syntastic_cpp_check_header = 1
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0