-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmiscellaneous.vim
More file actions
125 lines (109 loc) · 2.47 KB
/
miscellaneous.vim
File metadata and controls
125 lines (109 loc) · 2.47 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
" ++++++++++++++++++++++++************************
" Miscellaneous settings
" ++++++++++++++++++++++++************************
"
set number
set relativenumber
set signcolumn=yes
set undofile " Maintain undo history between sessions
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 viewoptions-=curdir
set nolist
set listchars=tab:▸·,eol:¬
set exrc
set nocursorline
if has ('win32')
set noerrorbells
set novisualbell
endif
if has('unix') && !has('win32')
set shell=zsh
endif
let g:c_syntax_for_h=1
let g:asmsyntax = 'nasm'
let filetype_asm = 'nasm'
let g:pairtools_samplefile_path='$MYVIMDIR/plugged/vim-PairTools/ftplugin'
if has ('nvim')
set undodir=~/.config/nvim/undodir
else
set undodir=$MYVIMDIR/undodir
end
let g:better_whitespace_ctermcolor=178
let g:better_whitespace_guicolor='firebrick4'
let g:better_whitespace_enabled=1
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",
\ "IMPORTANT NOTE",
\ "Important Note",
\ "important note",
\ "NOTE",
\ "Note",
\ "note",
\ "NOTES",
\ "Notes",
\ "notes",
\ "Todo",
\ "ToDo",
\ "todo",
\ "FIXME",
\ "FixMe",
\ "Fixme",
\ "fixme",
\ "IMPROVEME",
\ "ImproveMe",
\ "Improveme",
\ "improveme",
\ ]
if has('nvim')
if has('unix') && !has('win32')
let g:python3_host_prog = '/usr/bin/python3'
endif
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
" Always use make -j$(nproc) when using :make
if has('unix') && !has('win32')
let &makeprg = "make -j" . system('nproc')
endif
" Fix cursor on Windows
if exists('$WT_SESSION') || $TERM_PROGRAM ==# 'Windows_Terminal'
"set t_SI=[5 q " Insert mode: blinking beam
"set t_EI=[1 q " Normal mode: blinking block
"set t_SR=[3 q " Replace mode: blinking underscore
let &t_SI = "\e[5 q"
let &t_EI = "\e[1 q"
let &t_SR = "\e[3 q"
endif