From ce58c9157486a4190d74e13a9d5c52ee86168f5a Mon Sep 17 00:00:00 2001 From: Mattis DALLEAU Date: Sun, 28 Jun 2020 21:34:13 +0000 Subject: [PATCH] UTF-8 compatibilty unixformat wildignore added --- .vimrc | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.vimrc b/.vimrc index 8573a30..c24bd4d 100644 --- a/.vimrc +++ b/.vimrc @@ -203,3 +203,36 @@ endfun autocmd BufWritePre * :call CleanExtraSpaces() +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +"=> Convert text to UTF-8 +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +setglobal termencoding=utf-8 fileencodings= +scriptencoding utf-8 +set encoding=utf-8 + +autocmd BufNewFile,BufRead * try +autocmd BufNewFile,BufRead * set encoding=utf-8 +autocmd BufNewFile,BufRead * endtry + +"Going over all of this would take too much time +"This basically set everything in utf-8 in every circumtances + +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +"=> Convert to UNIX fileformat (avoid CRLF) +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +set fileformat=unix +"Set every files as Unix (LF) as Windows might set CRLF wich is not working +"for unix + + +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +"=> Ignore 'useless' extensions for wildmenu +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +set wildignore+=*.a,*.o,*.so,*.pyc,.git +set wildignore+=*.jpg,*.png,*.gif,*.bmp,*.ico,*.pdf +set wildignore+=*.tmp,*.swp + +"Tell NerdTree and Popup windows ignore thoses \ No newline at end of file