-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
48 lines (36 loc) · 1.29 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
set number
set clipboard=unnamed
set wildmode=longest,list
set autoindent
let mapleader=" "
filetype plugin on
set tabstop=8 shiftwidth=8
set list
set listchars=tab:\|\ ,
autocmd FileType ruby setlocal shiftwidth=4 tabstop=4 expandtab
autocmd FileType python setlocal shiftwidth=4 tabstop=4 expandtab
autocmd FileType yaml setlocal shiftwidth=2 tabstop=2 expandtab
autocmd FileType meson setlocal shiftwidth=2 tabstop=2 expandtab
autocmd FileType json setlocal shiftwidth=2 tabstop=2 expandtab
autocmd FileType html setlocal shiftwidth=2 tabstop=2 expandtab
autocmd FileType js setlocal shiftwidth=4 tabstop=4 expandtab
autocmd FileType css setlocal shiftwidth=2 tabstop=2 expandtab
autocmd FileType markdown setlocal textwidth=80
autocmd FileType sh setlocal shiftwidth=4 tabstop=4 expandtab
autocmd FileType rst setlocal foldmethod=manual
"remove whitepaces on save
autocmd BufWritePre * :%s/\s\+$//e
execute pathogen#infect()
syntax enable
set scrolloff=8
set nojoinspaces
colorscheme torte
" highlight search results
set hls
" key bindings
set pastetoggle=<F3>
map <F10> :Black <enter>
map <F11> :Mypy <enter>
" project-specific settings
autocmd BufNewFile,BufRead /home/tkrizek/git/dnsjit/* setlocal tabstop=4 shiftwidth=4 expandtab
autocmd BufNewFile,BufRead tests.sh setlocal tabstop=8 shiftwidth=8