aboutsummaryrefslogtreecommitdiff
path: root/config/vim
diff options
context:
space:
mode:
Diffstat (limited to 'config/vim')
-rw-r--r--config/vim/vimrc20
1 files changed, 10 insertions, 10 deletions
diff --git a/config/vim/vimrc b/config/vim/vimrc
index 585e5bf..6822f78 100644
--- a/config/vim/vimrc
+++ b/config/vim/vimrc
@@ -342,17 +342,17 @@ nnoremap gf :vsp <cfile><CR>
" from: https://vim.fandom.com/wiki/Autocomplete_with_TAB_when_typing_words
-function! TabOrComplete(direction)
- if col('.') > 1 && strpart(getline('.'), col('.') - 2, 3) =~# '^\w'
- return a:direction ==# 'next' ? "\<C-n>" : "\<C-p>"
- else
- return "\<TAB>"
- endif
-endfunction
-
-inoremap <TAB> <C-r>=TabOrComplete('next')<CR>
+" function! TabOrComplete(direction)
+" if col('.') > 1 && strpart(getline('.'), col('.') - 2, 3) =~# '^\w'
+" return a:direction ==# 'next' ? "\<C-n>" : "\<C-p>"
+" else
+" return "\<TAB>"
+" endif
+" endfunction
+
+" inoremap <TAB> <C-r>=TabOrComplete('next')<CR>
" st maps Shift-Tab to <ESC>[Z (and it's discouraged to change it)
-inoremap <ESC>[Z <C-r>=TabOrComplete('prev')<CR>
+" inoremap <ESC>[Z <C-r>=TabOrComplete('prev')<CR>
command! LaTeXtoUnicodeToggle call LaTeXtoUnicode#Toggle()