-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
90 lines (74 loc) · 2.3 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
function! s:isPasswordFile()
let filename = expand('%')
let test1 = (match(filename, '/dev/shm/pass.*txt') == 0)
let test2 = (match(filename, '$TMPDIR/pass.*txt') == 0)
let test3 = (match(filename, '/tmp/pass.*txt') == 0)
if test1 || test2 || test3
return 1
else
return 0
endif
endfunction
if s:isPasswordFile()
set nobackup
set nowritebackup
set noswapfile
set viminfo=
set noundofile
echomsg "Editing password file - disabling all plugins"
else
set encoding=utf-8
set nocompatible
let g:termdebug="rust-gdb"
packadd! termdebug
packadd! matchit
source ~/.vim/appearance.vim
source ~/.vim/behaviour.vim
source ~/.vim/filetype.vim
source ~/.vim/functions.vim
source ~/.vim/bindings.vim
source ~/.vim/packages.vim
source ~/.vim/appearance_after.vim
endif
" ================================= Bookmarks ============================== {{{
" ==================================== Coc ================================= {{{
" ~/.vim/coc-settings.json
" }}}
" ================================= Snippets =============================== {{{
" ~/.vim/UltiSnips/cmake.snippets
" ~/.vim/UltiSnips/conan.snippets
" ~/.vim/UltiSnips/cpp_algorithm_mnemonics.snippets
" ~/.vim/UltiSnips/cpp_containers.snippets
" ~/.vim/UltiSnips/cpp_memory.snippets
" ~/.vim/UltiSnips/cpp.snippets
" ~/.vim/UltiSnips/c.snippets
" ~/.vim/UltiSnips/gitcommit.snippets
" ~/.vim/UltiSnips/rust.snippets
" ~/.vim/UltiSnips/snippets.snippets
" ~/.vim/UltiSnips/tex.snippets
" ~/.vim/UltiSnips/xml.snippets
" ~/.vim/UltiSnips/vimspector.snippets
" ~/.vim/UltiSnips/docker-compose.snippets
" }}}
" ============================ Syntax Highlighting ========================= {{{
" ~/.vim/after/syntax/c.vim
" ~/.vim/after/syntax/markdown.vim
" }}}
" ================================= Filetypes ============================== {{{
" ~/.vim/after/ftplugin/matlab.vim
" ~/.vim/after/ftplugin/c.vim
" ~/.vim/after/ftplugin/fugitiveblame.vim
" ~/.vim/after/ftplugin/gitcommit.vim
" ~/.vim/after/ftplugin/markdown.vim
" ~/.vim/after/ftplugin/python.vim
" ~/.vim/after/ftplugin/tex.vim
" ~/.vim/after/ftplugin/rust.vim
" ~/.vim/after/ftplugin/i3.vim
" ~/.vim/after/ftplugin/bash.vim
" ~/.vim/after/ftplugin/zsh.vim
" ~/.vim/after/ftplugin/man.vim
" ~/.vim/after/ftplugin/json.vim
" ~/.vim/after/ftplugin/plantuml.vim
" ~/.vim/after/ftplugin/typst.vim
" }}}
" }}}