vim: add non-functional latex paragraph text object

This commit is contained in:
Gabriel Ebner 2014-10-08 16:41:06 +02:00
parent 2a8bc6cb77
commit a48b9cb9b9
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,3 @@
$pdf_previewer = 'evince %O %S';
$pdf_previewer = 'zathura %O %S';
$pdf_mode = 1;
push @extra_pdflatex_options, '-interaction=nonstopmode';

12
vimrc
View File

@ -69,6 +69,9 @@ NeoBundle 'idris-hackers/idris-vim'
NeoBundle 'tpope/vim-fugitive' " git integration
NeoBundle 'kana/vim-textobj-user'
NeoBundle 'rbonvall/vim-textobj-latex'
" vim-sleuth?
call neobundle#end()
@ -90,6 +93,15 @@ au BufReadCmd *.epub call zip#Browse(expand("<amatch>"))
au syntax haskell setl omnifunc=necoghc#omnifunc
let g:necoghc_enable_detailed_browse=1
" better paragraph object for tex files FIXME
call textobj#user#plugin('latexparagraph', {
\ 'paragraph': {
\ 'pattern': ['\n\s*\n\\|\\end\\|\\begin', '\n\s*\n\\|\\begin\\|\\end'],
\ 'select-a': 'al',
\ 'select-i': 'il',
\ },
\ })
" disable annoying "file is read-only" warnings
au FileChangedRO * set noreadonly