-
Notifications
You must be signed in to change notification settings - Fork 1
/
global.vim
80 lines (61 loc) · 1.48 KB
/
global.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
filetype plugin indent on
syntax on
set hidden
set noerrorbells
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set linebreak
set updatetime=300
set signcolumn=number
set nu
set rnu
set smartcase
set noswapfile
set nobackup
set undodir=~/usr/share/nvim/undodir
set undofile
set incsearch
set encoding=utf8
set mouse=a
set lazyredraw
set updatetime=300
set exrc
"set secure
set wildmenu
set so=12
set showcmd
set noshowmode
set cmdheight=1
set termguicolors
set cursorline
set showtabline=2
autocmd BufEnter * silent! lcd %:p:h
"source local configurations
set foldmethod=indent
set foldlevel=99
""colorscheme
set background=light
colorscheme base16-onedark
"kitty padding
if $TERM == "xterm-kitty"
autocmd VimEnter * silent !kitty @ --to=$KITTY_LISTEN_ON set-spacing padding=0 &
autocmd VimLeave * silent !kitty @ --to=$KITTY_LISTEN_ON set-spacing padding=default &
endif
"set terminal automatically in insert mode
autocmd TermOpen * startinsert
autocmd TermOpen * set nonu nornu
"reset the terminal cursor when leaving
autocmd VimLeave * set guicursor=a:ver100
"spell
" autocmd FileType gitcommit,tex,rmd,markdown,pandoc setlocal spell spelllang=fr,en_us
set complete+=kspell
"remove tilde in empty lines
let &fcs='eob: '
" to avoid conflicts with virtualenvs
let g:python3_host_prog='/usr/bin/python'
" hi! markdownItalic cterm=italic
" hi! Comment cterm=italic
autocmd VimEnter * call UpdateCommands()
set rtp^="/home/louise/.opam/cs3110-2022fa/share/ocp-indent/vim"