-
Notifications
You must be signed in to change notification settings - Fork 0
/
miscellaneous.vim
104 lines (89 loc) · 1.97 KB
/
miscellaneous.vim
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
102
103
" ++++++++++++++++++++++++************************
" Miscellaneous settings
" ++++++++++++++++++++++++************************
"
source ~/.vim/kernel-style.vim
set number
set relativenumber
set signcolumn=yes
set undofile " Maintain undo history between sessions
set shell=zsh
set ttimeoutlen=0
set timeoutlen=500
set noswapfile
set wildmenu
set wildmode=longest:full,full
set wildoptions=pum
set mouse=a
set splitbelow
set noscrollbind
set nocursorbind
set incsearch
set scrolloff=5
set tags=./tags;,tags;./.tags;,.tags;
set cursorline
set foldmethod=syntax
set foldnestmax=99
set foldlevel=99
set noautochdir
set nolist
set listchars=tab:▸·,eol:¬
set exrc
let g:c_syntax_for_h=1
let g:asmsyntax = 'nasm'
let filetype_asm = 'nasm'
let g:pairtools_samplefile_path='~/.vim/plugged/vim-PairTools/ftplugin'
if has ('nvim')
set undodir=~/.config/nvim/undodir
else
set undodir=~/.vim/undodir
end
let g:better_whitespace_ctermcolor='gray'
let g:better_whitespace_guicolor='gray'
let g:better_whitespace_enabled=0
let g:strip_whitespace_on_save=0
let g:strip_whitespace_confirm=0
let g:asyncrun_open = 6
let g:startify_change_to_dir = 0
if exists('$TMUX')
let &t_SI = "\<Esc>Ptmux;\<Esc>\e[5 q\<Esc>\\"
let &t_EI = "\<Esc>Ptmux;\<Esc>\e[2 q\<Esc>\\"
let &t_SI = "\e[5 q" | let &t_EI = "\e[2 q"
else
let &t_SI = "\e[5 q"
let &t_EI = "\e[2 q"
endif
let todoKeywords = [
\ "dummy",
\ "DUMMY",
\ "NOTE",
\ "Note",
\ "note",
\ "NOTES",
\ "Notes",
\ "notes",
\ "Todo",
\ "ToDo",
\ "todo",
\ "FIXME",
\ "FixMe",
\ "Fixme",
\ "fixme",
\ "IMPROVEME",
\ "ImproveMe",
\ "Improveme",
\ "improveme",
\ ]
if exists('+termguicolors')
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif
if has('nvim')
let g:python3_host_prog = '/usr/bin/python3'
else
set pyxversion=3
endif
if $TERM == 'screen-256color' " or w/e your TERM is in tmux
exec "set <S-F11>=\<Esc>[23;2~"
endif