Обновление

This commit is contained in:
2020-05-16 11:33:59 +03:00
parent 9c4952da72
commit c6af0ae5a7
3 changed files with 137 additions and 36 deletions

36
vimrc
View File

@ -68,7 +68,7 @@ Plug 'sstallion/vim-wildignore'
" https://github.com/tpope/vim-fugitive
" Git "
" Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-fugitive'
" https://github.com/airblade/vim-gitgutter
" Отличия от Git в левой колонке "
@ -122,6 +122,10 @@ Plug 'elnull/vim-dfutil' | Plug 'elnull/vimprj'
" CMake "
Plug 'vhdirk/vim-cmake'
" https://github.com/python-mode/python-mode "
" Python "
Plug 'python-mode/python-mode', { 'for': 'python', 'branch': 'develop' }
" Перечисление плагинов заканчивается здесь "
call plug#end()
@ -314,7 +318,7 @@ autocmd FileType bash,python,vim,html,c,cpp,objc,objcpp call rainbow#load()
let g:better_whitespace_enabled=1
let g:strip_whitelines_at_eof=1
let g:strip_whitespace_on_save=0
autocmd FileType javascript,c,cpp,java,html,ruby,vim,python EnableStripWhitespaceOnSave
autocmd FileType javascript,c,cpp,java,html,python,ruby,tex,vim EnableStripWhitespaceOnSave
"}}}
"{{{1 Статусная строка
@ -660,6 +664,34 @@ augroup asciidoctor
augroup END
"}}}
"{{{ LaTeX
augroup latex
au!
au BufNewFile,BufRead *.tex
\ setlocal tabstop=2 softtabstop=2 shiftwidth=2 expandtab
augroup END
let g:tex_flavor='latex'
"}}}
"{{{ Python
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=79 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix |
let g:pymode_python = 'python3'
" enable all Python syntax highlighting features
let python_highlight_all = 1
"}}}
" Чтение настроек проектов из каталогов .vimprj
call vimprj#init()
"{{{ Чтение настроек для текущего компьютера из каталога $HOME/.vim/hosts