2014-09-25 03:42:16 +00:00
|
|
|
syntax on
|
|
|
|
|
|
|
|
filetype on
|
|
|
|
filetype indent on
|
|
|
|
filetype plugin on
|
|
|
|
|
2014-10-01 02:23:54 +00:00
|
|
|
set backspace=indent,eol,start
|
2017-08-17 20:31:30 +00:00
|
|
|
set backupdir^=~/.vim/_backup//
|
|
|
|
set cursorline
|
|
|
|
set cursorcolumn
|
2014-09-25 03:42:16 +00:00
|
|
|
set directory^=~/.vim/_temp//
|
2017-08-27 14:07:51 +00:00
|
|
|
set encoding=utf8
|
2014-09-25 03:42:16 +00:00
|
|
|
set hlsearch
|
|
|
|
set ignorecase
|
|
|
|
set incsearch
|
|
|
|
set laststatus=2
|
2018-08-17 13:02:13 +00:00
|
|
|
set linebreak
|
2019-03-07 16:04:17 +00:00
|
|
|
set modeline
|
2014-09-25 03:42:16 +00:00
|
|
|
set nowrap
|
|
|
|
set number
|
|
|
|
set smartcase
|
|
|
|
set tabstop=4
|
|
|
|
set textwidth=67
|
|
|
|
|
2020-03-26 13:48:30 +00:00
|
|
|
if has("persistent_undo")
|
|
|
|
set undodir=~/.vim/_undo//
|
|
|
|
set undofile
|
|
|
|
endif
|
|
|
|
|
|
|
|
au BufRead,BufNewFile Pipfile setfiletype toml
|
2019-04-09 14:04:26 +00:00
|
|
|
au BufRead,BufNewFile *.gcfg setfiletype gitconfig
|
2020-03-21 14:06:33 +00:00
|
|
|
au BufRead,BufNewFile Pipfile setfiletype toml
|
|
|
|
au BufWritePre *.py execute ':Black'
|
2019-05-13 13:45:12 +00:00
|
|
|
au QuickFixCmdPost *grep* cwindow
|
2020-03-26 13:48:30 +00:00
|
|
|
au BufWritePre *.py execute ':Black'
|
2019-04-09 14:04:26 +00:00
|
|
|
|
2014-09-25 03:42:16 +00:00
|
|
|
map ,t :w<CR>
|
|
|
|
map ,- :nohl<CR>
|
2015-08-19 00:14:39 +00:00
|
|
|
map ,w :%s/ *$//<CR>
|
2014-09-25 03:42:16 +00:00
|
|
|
|
2017-08-27 14:07:51 +00:00
|
|
|
let g:airline_powerline_fonts = 1
|
2018-08-17 13:02:13 +00:00
|
|
|
let g:go_fmt_command = "goimports"
|
|
|
|
let g:python_highlight_all = 1
|
2018-03-24 02:17:25 +00:00
|
|
|
let g:rustfmt_autosave = 1
|
2020-03-08 04:30:26 +00:00
|
|
|
let g:shfmt_extra_args = '-i 2'
|
|
|
|
let g:shfmt_fmt_on_save = 1
|
2020-03-21 14:06:33 +00:00
|
|
|
let g:syntastic_always_populate_loc_list = 1
|
|
|
|
let g:syntastic_auto_loc_list = 1
|
|
|
|
let g:syntastic_check_on_open = 1
|
|
|
|
let g:syntastic_check_on_wq = 0
|
|
|
|
let g:syntastic_python_checkers = ['flake8']
|
2018-03-24 02:17:25 +00:00
|
|
|
let g:terraform_align = 1
|
|
|
|
let g:terraform_fmt_on_save = 1
|
2018-08-17 13:02:13 +00:00
|
|
|
let g:vim_markdown_folding_disabled = 1
|
|
|
|
let g:vim_markdown_frontmatter = 1
|
2018-12-29 21:40:11 +00:00
|
|
|
let g:yapf_style = "pep8"
|
2014-11-12 16:00:11 +00:00
|
|
|
|
2020-03-26 13:48:30 +00:00
|
|
|
if has("python3")
|
|
|
|
python3 from powerline.vim import setup as powerline_setup
|
|
|
|
python3 powerline_setup()
|
|
|
|
python3 del powerline_setup
|
|
|
|
endif
|
|
|
|
|
2014-09-25 03:42:16 +00:00
|
|
|
call pathogen#infect()
|
2014-11-12 16:00:11 +00:00
|
|
|
|
2018-08-17 13:02:13 +00:00
|
|
|
colo dracula
|
2020-03-26 13:48:30 +00:00
|
|
|
hi Comment cterm=NONE ctermfg=DarkRed gui=NONE guifg=red2
|