-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
60 lines (46 loc) · 1.46 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
execute pathogen#infect()
" python syntax
set background=dark
" plus these user specific settings
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g'\"" | endif
endif
" don't create swap files
set nobackup
set nowritebackup
set noswapfile
" set copy in vim to copy to clipboard
set clipboard=unnamed
" show line numbers
set number
" replace all tabs with 4 spaces
set tabstop=4
set shiftwidth=4
set expandtab
" remove trailing white space on save
autocmd BufWritePre *.py %s/\s\+$//e
autocmd BufWritePre *.yaml %s/\s\+$//e
autocmd BufWritePre *.vimrc %s/\s\+$//e
syntax enable
noremap <leader>s :setlocal spell! spelllang=en_US<cr>
noremap <leader>sm :mkspell! ~/.vim/spellfile.utf-8.add<cr>
set spellfile=$HOME/.vim/spellfile.utf-8.add
" make delete behave
set backspace=indent,eol,start
" add red line at end of line
let &colorcolumn="89"
" render html properly
au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm set ft=jinja
au BufNewFile,BufRead *.conf set syntax=conf
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" post install (yarn install | npm install) then load plugin only for editing
" supported files
Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
" Initialize plugin system
call plug#end()