mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2023-02-13 20:55:19 -05:00
UTF-8 compatibilty unixformat wildignore added
This commit is contained in:
parent
01c3d3abac
commit
ce58c91574
1 changed files with 33 additions and 0 deletions
33
.vimrc
33
.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
|
Loading…
Reference in a new issue