1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Fix vimtex mapping breaking navigation

Thanks, lervag!
https://github.com/lervag/vimtex/issues/1004
This commit is contained in:
Joe Groocock 2017-11-23 21:26:29 +00:00
parent 36588f8de5
commit 3042e747e5
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -93,14 +93,6 @@ let vim_markdown_preview_browser='Chromium'
let vim_markdown_preview_use_xdg_open=1 let vim_markdown_preview_use_xdg_open=1
let vim_markdown_preview_github=1 let vim_markdown_preview_github=1
" lervag/vimtex plugin
nmap <silent><buffer> <Nop> <plug>(vimtex-env-delete)
nmap <silent><buffer> <Nop> <plug>(vimtex-cmd-delete)
nmap <silent><buffer> <Nop> <plug>(vimtex-env-delete-math)
nmap <silent><buffer> <Nop> <plug>(vimtex-env-toggle-star)
nmap <silent><buffer> <Nop> <plug>(vimtex-delim-toggle-modifier)
xmap <silent><buffer> <Nop> <plug>(vimtex-delim-toggle-modifier)
let mapleader="\<space>" let mapleader="\<space>"
" Unbind arrow keys " Unbind arrow keys
for prefix in ['n', 'v'] for prefix in ['n', 'v']
@ -179,6 +171,12 @@ if (exists("g:use_dvorak") && g:use_dvorak == 1)
noremap zh zj noremap zh zj
noremap zt zk noremap zt zk
" Disable some default vimtex mappings that conflict with rebound keys
let g:vimtex_mappings_disable = {
\ 'n': ['tse', 'tsd', 'tsD', 'tsc', 'dse', 'dsc', 'ds$', 'dsd'],
\ 'x': ['tsd', 'tsD'],
\}
endif endif
" Interface with system clipboard " Interface with system clipboard