vim: add non-functional latex paragraph text object
This commit is contained in:
parent
2a8bc6cb77
commit
a48b9cb9b9
@ -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
12
vimrc
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user