From f7317e03c308ea4c433d0bb18eaaa116a0db6e6a Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sat, 16 May 2020 12:11:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/awesome.vimrc | 1 + vimrc | 47 ++++++++++++++++++++++++++++++++++----------- 2 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 hosts/awesome.vimrc 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'