diff options
| author | _Tradam <[email protected]> | 2021-10-08 20:42:50 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-08 20:42:50 -0400 |
| commit | 407645c158df8938995a5055c8fd1a5202185106 (patch) | |
| tree | 772cbb462e884dc8018c9e19125a39b46ead0e00 | |
| parent | 20a7207d9348b5dbeb2955a2f21cff64adc6347b (diff) | |
| download | Vim-Configs-407645c158df8938995a5055c8fd1a5202185106.tar.gz Vim-Configs-407645c158df8938995a5055c8fd1a5202185106.zip | |
.
| -rw-r--r-- | vimrc | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |
