diff --git a/hosts/awesome.vimrc b/hosts/awesome.vimrc new file mode 100644 index 0000000..2ad9261 --- /dev/null +++ b/hosts/awesome.vimrc @@ -0,0 +1 @@ +set guifont=PragmataPro\ 18 diff --git a/vimrc b/vimrc index edbea13..7f3372f 100644 --- a/vimrc +++ b/vimrc @@ -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 :call ChangeSpellLang() imap :call ChangeSpellLang() " Выбор альтернатив для исправления " imap s map z= +map ]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'