-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
71 lines (56 loc) · 1.77 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
call plug#begin()
Plug 'pearofducks/ansible-vim'
Plug 'vim-airline/vim-airline'
call plug#end()
syntax enable
set background=dark
colorscheme solarized
" syntax enable
" set background=light
" colorscheme solarized
" Numbers
set number
" Fold
set foldmethod=marker
" Fix backspace "Can't delete anything that was not typed during your curret insert mode session
set backspace=indent,eol,start
set list
set listchars=tab:▸\ ,eol:¬
set autoindent
set complete-=i
set showmatch
set smarttab
set et
set tabstop=4
set shiftwidth=4
set expandtab
" Make Vim to handle long lines nicely.
set wrap
set textwidth=79
set formatoptions=qrn1
" File Browser
" let g:netrw_banner = 0
" let g:netrw_liststyle = 3
" let g:netrw_browse_split = 4
" let g:netrw_altv = 1
" let g:netrw_winsize = 25
" augroup ProjectDrawer
" autocmd!
" autocmd VimEnter * :Vexplore
" augroup END
" ansible-vim
au BufRead,BufNewFile */playbooks/*.yml set filetype=yaml.ansible
" Markdown Settings
autocmd BufNewFile,BufReadPost *.md setl ts=4 sw=4 sts=4 expandtab
"
" Markdown highlight for my *.md files
au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown
" Markdown Export to pdf
"autocmd Filetype markdown map <F5> :!pandoc<space><C-r>%<space>-o<space><C-r>%.pdf --listings<Enter><Enter>
autocmd Filetype markdown map <F5> :!pandoc<space><C-r>%<space>-o<space><C-r>%.pdf --from markdown --template eisvogel --listings<Enter><Enter>
" python indent
autocmd BufNewFile,BufRead *.py setlocal tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80 smarttab expandtab
" html, css, and js indent
autocmd BufNewFile,BufRead *.html setlocal tabstop=2 softtabstop=2 shiftwidth=2
autocmd BufNewFile,BufRead *.css setlocal tabstop=2 softtabstop=2 shiftwidth=2
autocmd BufNewFile,BufRead *.js setlocal tabstop=2 softtabstop=2 shiftwidth=2