/
.vimrc
93 lines (74 loc) · 2.35 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
" Max's custom .vimrc
" Load defaults
set nocompatible
set encoding=utf-8
unlet! skip_defaults_vim
source $VIMRUNTIME/defaults.vim
set shell=/bin/bash
filetype off
" Set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'junegunn/seoul256.vim' " Seoul256 color scheme
"Plugin 'Maxr1998/PrinterTheme' " Color scheme for printing
Plugin 'Yggdroot/indentLine' " Mark leading spaces
Plugin 'PeterRincker/vim-argumentative' " Argument magic
Plugin 'tpope/vim-fugitive' " git integration
if has("python3")
Plugin 'ycm-core/YouCompleteMe' " Auto-complete
Plugin 'Shougo/defx.nvim' " File browser
endif
Plugin 'junegunn/goyo.vim' " Writing mode
Plugin 'lervag/vimtex' " TeX support
Plugin 'godlygeek/tabular' " Markdown support
Plugin 'dag/vim-fish' " fish script support
Plugin 'wakatime/vim-wakatime' " Time tracking
call vundle#end()
filetype plugin indent on
" Max's customisations
set number
set nofoldenable
set nofixendofline
set tabstop=4 " Make tabs appear 4 spaces wide
set expandtab " Convert tabs to spaces
set shiftwidth=4 " Indent width for spaces
" Shiftwidth customisations by language
autocmd FileType html setlocal shiftwidth=2
autocmd FileType json setlocal shiftwidth=2
autocmd FileType yaml setlocal shiftwidth=2
" TeX customisations
autocmd FileType tex setlocal linebreak
autocmd FileType tex setlocal conceallevel=0
" Keep indent of #pragma directives in C files (e.g. #pragma omp ...)
set cinoptions=P1
" Disable quote concealing in JSON files
let g:vim_json_conceal = 0
" Utility macros
let @l = "/\\80i d79|l" " sanitize \\ indention
" PLUGIN CONFIGURATION
" Color scheme
let g:seoul256_srgb = 1
let g:seoul256_background = 234
colorscheme seoul256
set termguicolors
" indentLine
let g:indentLine_enabled = 0
let g:indentLine_setConceal = 0
let g:indentLine_leadingSpaceEnabled = 1
let g:indentLine_leadingSpaceChar = '.'
" Set vimtex flavor
let g:tex_flavor = 'latex'
" vim-markdown
let g:vim_markdown_conceal = 0
" Goyo
autocmd FileType tex Goyo 140x100%
function! s:goyo_leave()
quit
endfunction
autocmd! User GoyoLeave nested call <SID>goyo_leave()
" GVIM CONFIG
if has("gui_running")
set guifont=DankMono\ 13
endif