aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorAdrian Kummerlaender2017-02-24 12:46:48 +0100
committerAdrian Kummerlaender2017-02-24 12:46:48 +0100
commit2fd9225923d3aafe0bd6ab1e3e9171769f933962 (patch)
tree0857e798d5b8481bf255d9bf87c921effc09cc74 /vim
parent4b35ace55a6e906635885307ada373741511d1a1 (diff)
downloaddotfiles-2fd9225923d3aafe0bd6ab1e3e9171769f933962.tar
dotfiles-2fd9225923d3aafe0bd6ab1e3e9171769f933962.tar.gz
dotfiles-2fd9225923d3aafe0bd6ab1e3e9171769f933962.tar.bz2
dotfiles-2fd9225923d3aafe0bd6ab1e3e9171769f933962.tar.lz
dotfiles-2fd9225923d3aafe0bd6ab1e3e9171769f933962.tar.xz
dotfiles-2fd9225923d3aafe0bd6ab1e3e9171769f933962.tar.zst
dotfiles-2fd9225923d3aafe0bd6ab1e3e9171769f933962.zip
Setup `vim-latex-suite`, math concealment, fold toggling
Diffstat (limited to 'vim')
-rw-r--r--vim/.vimrc13
1 files changed, 11 insertions, 2 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 77cf7ae..38137cb 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -11,6 +11,7 @@
" * vim-pandoc-syntax -- `pandoc` syntax module
" * goyo.vim -- undistracted writing mode
" * vim-matlab-behave -- add basic matlab support
+" * vim-latex-suite -- latex integration, main usecase is concealment of math expressions
call pathogen#infect()
@@ -46,11 +47,14 @@ set smartcase
let mapleader=","
-map <leader>s :let @/=""<CR>
+map <leader>s :let @/=""<CR>
map <leader>fc :foldclose<CR>
map <leader>fo :foldopen<CR>
+map <leader>t :Tab/\|<CR>
nmap <backspace> :e#<CR>
+nmap f za
+nmap F zA
autocmd InsertEnter * :setlocal nohlsearch
autocmd InsertLeave * :setlocal hlsearch
@@ -65,6 +69,7 @@ autocmd FileType lisp setlocal shiftwidth=2 tabstop=2 expandtab
autocmd FileType racket setlocal shiftwidth=2 tabstop=2 expandtab
autocmd FileType pandoc setlocal nonumber autoread
autocmd FileType pandoc let g:airline#extensions#whitespace#checks=['indent', 'trailing', 'long']
+autocmd FileType tex set conceallevel=2
vnoremap cc "+y
nnoremap cc "+p
@@ -112,7 +117,7 @@ let g:goyo_margin_top = 1
let g:goyo_margin_bottom = 0
let g:matlab_behave_paste_cmd = "alt+v"
-let g:pandoc#modules#disabled = ["folding","spell"]
+let g:pandoc#modules#disabled = ["folding","spell","chdir"]
let g:pandoc#syntax#conceal#blacklist = ["image","atx"]
let g:pandoc#syntax#codeblocks#embeds#langs = ["c","cpp","sh","xslt","xml","python","php","diff","gdb","lisp","scheme"]
@@ -121,3 +126,7 @@ nnoremap <F5> :MundoToggle<CR>
nnoremap <F6> :GitGutterToggle<CR>
nnoremap <F7> :set cursorline!<CR>
nnoremap <F12> :Goyo<CR>
+
+" latex suite
+set grepprg=grep\ -nH\ $*
+let g:tex_flavor = "latex"