summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
author_Tradam <[email protected]>2021-10-08 20:42:50 -0400
committerGitHub <[email protected]>2021-10-08 20:42:50 -0400
commit407645c158df8938995a5055c8fd1a5202185106 (patch)
tree772cbb462e884dc8018c9e19125a39b46ead0e00
parent20a7207d9348b5dbeb2955a2f21cff64adc6347b (diff)
downloadVim-Configs-407645c158df8938995a5055c8fd1a5202185106.tar.gz
Vim-Configs-407645c158df8938995a5055c8fd1a5202185106.zip
.
-rw-r--r--vimrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 1d3d4cb..ef4aca7 100644
--- a/vimrc
+++ b/vimrc
@@ -2,6 +2,10 @@
unlet! skip_defaults_vim
source $VIMRUNTIME/defaults.vim
+" Set utf-8 encoding early to prevent issues later on
+set encoding=utf-8
+set fileencoding=utf-8
+
" ----- CUSTOM CONFIGURATION DIRECTORY ----- "
" If you don't care about changing the vim config directory then you can
" safely ignore this section
@@ -263,6 +267,13 @@ augroup ft_vimwiki
au FileType vimwiki inoremap <silent> <buffer> <expr> <S-CR> complete_info()['selected'] > -1 ? "\<S-CR>" : "<Esc>:VimwikiReturn 2 2<CR>"
augroup END
+" Coc configs
+" Fix autocompletion adding a newline while in visual multi mode
+augroup coc_autocomplete_newline
+ au!
+ autocmd User visual_multi_mappings imap <buffer><expr> <CR> pumvisible() ? "\<C-Y>" : "\<Plug>(VM-I-Return)"
+augroup END
+
" what program should vimtex use to show live edits
let g:vimtex_view_method = 'zathura'
" what flavour vimtex should use for autocomplete