Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED][VIM] domyslne kodowanie (usnac [converted])
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
quat
Guru
Guru


Joined: 18 Sep 2004
Posts: 316

PostPosted: Sat Apr 23, 2005 12:50 pm    Post subject: [SOLVED][VIM] domyslne kodowanie (usnac [converted]) Reply with quote

od jakiesgos czasu podczas edycji za pomoca vim-a i zapisu pliku dostaje kominikat [converted]. nie przejmowlem siety dopiero kiedy mialem klopoty z wyswieleniem znakow polskichkilku programach, a pliki przeszly edycje w vim-ie. doszedlem ze zapisuje on w utf-8 domyslnie.

znalazlem ze zeby wskazac vi w jakim systemie zapisywac nalezy wpisac do ~.vimrc
Code:
set encoding=iso-8859-2
set fileencoding=iso-8859-2
i tak tez zrobilem. tylko w dalszym ciagu dostaje to [converted]. :evil:

musze wpisac podczas sesji vi "set fileencoding=iso-8859-2" i dopiero zapisuje bez konwersji.

jak calkowicie to zmienic? chce wszystkie pliki miec zapisane w formacie iso8859-2 a nie utf-8.
_________________
a mind is like a parachute, it's better when it's open


Last edited by quat on Sat Apr 23, 2005 2:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
quat
Guru
Guru


Joined: 18 Sep 2004
Posts: 316

PostPosted: Sat Apr 23, 2005 2:44 pm    Post subject: Reply with quote

no dobra sam znalazlem. musi byc jeszce jeden wpis
Code:
set fileencodings=latin2
i domyslnie wszystkie pliki zapisuje w iso.
_________________
a mind is like a parachute, it's better when it's open
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum