From ba01aa4f0f2a1822df4cc77194d2668dfdaa7780 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 4 Nov 2021 21:34:20 +0100 Subject: Added neovim draft config in lua --- config/vim/vimrc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'config/vim/vimrc') 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 " 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' ? "\" : "\" - else - return "\" - endif -endfunction - -inoremap =TabOrComplete('next') +" function! TabOrComplete(direction) +" if col('.') > 1 && strpart(getline('.'), col('.') - 2, 3) =~# '^\w' +" return a:direction ==# 'next' ? "\" : "\" +" else +" return "\" +" endif +" endfunction + +" inoremap =TabOrComplete('next') " st maps Shift-Tab to [Z (and it's discouraged to change it) -inoremap [Z =TabOrComplete('prev') +" inoremap [Z =TabOrComplete('prev') command! LaTeXtoUnicodeToggle call LaTeXtoUnicode#Toggle() -- cgit