Обновление
This commit is contained in:
parent
c6af0ae5a7
commit
f7317e03c3
1
hosts/awesome.vimrc
Normal file
1
hosts/awesome.vimrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
set guifont=PragmataPro\ 18
|
45
vimrc
45
vimrc
@ -68,7 +68,7 @@ Plug 'sstallion/vim-wildignore'
|
|||||||
|
|
||||||
" https://github.com/tpope/vim-fugitive
|
" https://github.com/tpope/vim-fugitive
|
||||||
" Git "
|
" Git "
|
||||||
Plug 'tpope/vim-fugitive'
|
" Plug 'tpope/vim-fugitive'
|
||||||
|
|
||||||
" https://github.com/airblade/vim-gitgutter
|
" https://github.com/airblade/vim-gitgutter
|
||||||
" Отличия от Git в левой колонке "
|
" Отличия от Git в левой колонке "
|
||||||
@ -122,6 +122,9 @@ Plug 'elnull/vim-dfutil' | Plug 'elnull/vimprj'
|
|||||||
" CMake "
|
" CMake "
|
||||||
Plug 'vhdirk/vim-cmake'
|
Plug 'vhdirk/vim-cmake'
|
||||||
|
|
||||||
|
Plug 'lervag/vimtex'
|
||||||
|
Plug 'xuhdev/vim-latex-live-preview'
|
||||||
|
|
||||||
" https://github.com/python-mode/python-mode "
|
" https://github.com/python-mode/python-mode "
|
||||||
" Python "
|
" Python "
|
||||||
Plug 'python-mode/python-mode', { 'for': 'python', 'branch': 'develop' }
|
Plug 'python-mode/python-mode', { 'for': 'python', 'branch': 'develop' }
|
||||||
@ -513,13 +516,22 @@ function! ChangeSpellLang()
|
|||||||
endif
|
endif
|
||||||
endfunc
|
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>
|
map <C-F7> :call ChangeSpellLang()<CR>
|
||||||
imap <C-F7> <Esc>:call ChangeSpellLang()<CR>
|
imap <C-F7> <Esc>:call ChangeSpellLang()<CR>
|
||||||
|
|
||||||
" Выбор альтернатив для исправления "
|
" Выбор альтернатив для исправления "
|
||||||
imap <F7> <C-X>s
|
imap <F7> <C-X>s
|
||||||
map <F7> z=
|
map <F7> z=
|
||||||
|
map <S-F7> ]s
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
"{{{ Переключение варианта нумерации строк
|
"{{{ Переключение варианта нумерации строк
|
||||||
@ -669,21 +681,34 @@ augroup END
|
|||||||
augroup latex
|
augroup latex
|
||||||
au!
|
au!
|
||||||
au BufNewFile,BufRead *.tex
|
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
|
augroup END
|
||||||
|
|
||||||
let g:tex_flavor='latex'
|
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
|
"{{{ Python
|
||||||
|
augroup python
|
||||||
|
au!
|
||||||
au BufNewFile,BufRead *.py
|
au BufNewFile,BufRead *.py
|
||||||
\ set tabstop=4 |
|
\ setlocal tabstop=4 |
|
||||||
\ set softtabstop=4 |
|
\ setlocal softtabstop=4 |
|
||||||
\ set shiftwidth=4 |
|
\ setlocal shiftwidth=4 |
|
||||||
\ set textwidth=79 |
|
\ setlocal textwidth=79 |
|
||||||
\ set expandtab |
|
\ setlocal expandtab |
|
||||||
\ set autoindent |
|
\ setlocal autoindent |
|
||||||
\ set fileformat=unix |
|
\ setlocal fileformat=unix
|
||||||
|
|
||||||
let g:pymode_python = 'python3'
|
let g:pymode_python = 'python3'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user