Обновление

This commit is contained in:
Andrei Astafev 2020-05-16 12:11:23 +03:00
parent c6af0ae5a7
commit f7317e03c3
2 changed files with 37 additions and 11 deletions

1
hosts/awesome.vimrc Normal file
View File

@ -0,0 +1 @@
set guifont=PragmataPro\ 18

47
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,9 @@ Plug 'elnull/vim-dfutil' | Plug 'elnull/vimprj'
" CMake "
Plug 'vhdirk/vim-cmake'
Plug 'lervag/vimtex'
Plug 'xuhdev/vim-latex-live-preview'
" https://github.com/python-mode/python-mode "
" Python "
Plug 'python-mode/python-mode', { 'for': 'python', 'branch': 'develop' }
@ -513,13 +516,22 @@ function! ChangeSpellLang()
endif
endfunc
" Выбор набора языков для проверки орфографии "
" Пропуск слов по шаблонам
fun! IgnoreSomeCasesSpell()
syn match LongUpperCase /\<[A-ZА-Я]\{3,}\>/ contains=@NoSpell transparent
syn match CamelCase /\<[A-Z][a-z]\+[A-Z].\{-}\>/ contains=@NoSpell transparent
syn cluster Spell add=CamelCase,LongUpperCase
endfun
autocmd BufRead,BufNewFile * :call IgnoreSomeCasesSpell()
" Выбор Набора языков для проверки орфографии "
map <C-F7> :call ChangeSpellLang()<CR>
imap <C-F7> <Esc>:call ChangeSpellLang()<CR>
" Выбор альтернатив для исправления "
imap <F7> <C-X>s
map <F7> z=
map <S-F7> ]s
"}}}
"{{{ Переключение варианта нумерации строк
@ -669,21 +681,34 @@ augroup END
augroup latex
au!
au BufNewFile,BufRead *.tex
\ setlocal tabstop=2 softtabstop=2 shiftwidth=2 expandtab
\ setlocal tabstop=2 |
\ setlocal softtabstop=2 |
\ setlocal shiftwidth=2 |
\ setlocal expandtab |
\ setlocal iskeyword+=: |
\ setlocal updatetime=1
augroup END
let g:tex_flavor='latex'
let g:vimtex_quickfix_open_on_warning = 0
let g:vimtex_quickfix_mode = 2
let g:vimtex_view_method = 'qpdfview'
let g:livepreview_previewer = 'qpdfview'
let g:tex_conceal = ''
"}}}
"{{{ Python
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=79 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix |
augroup python
au!
au BufNewFile,BufRead *.py
\ setlocal tabstop=4 |
\ setlocal softtabstop=4 |
\ setlocal shiftwidth=4 |
\ setlocal textwidth=79 |
\ setlocal expandtab |
\ setlocal autoindent |
\ setlocal fileformat=unix
let g:pymode_python = 'python3'