Blob


1 set mouse-=a
3 set belloff=all
5 set title
6 set ruler
8 syntax on
10 set tabstop=4
11 set shiftwidth=4
12 set softtabstop=4
13 set expandtab
14 set autoindent
15 inoremap <S-Tab> <C-d>
17 set hlsearch
18 set incsearch
20 nnoremap <Leader>e :e <C-R>=expand('%:p:h') . '/'<CR>
22 nnoremap <Leader>g :execute
23 \ "grep! -nIR --exclude-dir=.git
24 \ --exclude=*.orig
25 \ --exclude=.*.swp
26 \ --exclude=*.rej
27 \ --exclude=*~ "
28 \ . shellescape("\\<" . expand("<cword>") . "\\>")
29 \ . " ."<cr>:copen<cr><cr>
31 set backspace=indent,eol,start
33 autocmd FileType python compiler pylint
34 autocmd FileType python set nu
36 autocmd FileType rust set nu
38 autocmd FileType json set tabstop=2
39 autocmd FileType json set shiftwidth=2
40 autocmd FileType json set softtabstop=2
42 autocmd FileType yaml set tabstop=2
43 autocmd FileType yaml set shiftwidth=2
44 autocmd FileType yaml set softtabstop=2
46 autocmd FileType html set tabstop=2
47 autocmd FileType html set shiftwidth=2
48 autocmd FileType html set softtabstop=2
50 autocmd FileType make set noexpandtab
51 autocmd FileType make set tabstop=8
52 autocmd FileType make set shiftwidth=8
53 autocmd FileType make set softtabstop=8