ロリポップのSSH接続でviの文字化けを解消する

低価格大容量でナウなヤングに人気のレンタルサーバー、ロリポップ。
チカッパプランでは、SSH接続もできて便利そうなので試しに借りてみました。

レンタルサーバー会社によっては、SSH接続はできても使えるコマンドが厳しく制限されていたり、公開鍵認証が使えなかったりと、思うように使えないこともよくあります。(最近だとサーバーカウボーイがそうだった)
ロリポップは、2週間のお試し期間があるのでその点安心です。公開鍵認証もGitも使えるので、正式利用することにしました。

が、ファイルを編集してみようとすると日本語部分が文字化けします。
どうやら、サーバーのエンコーディングがEuc-JPになっているようです。
WordPressを始め、最近のWebアプリ事情はUTF-8が基本なので、ここもそれに合わせましょう。

ログインしたところ、ユーザーのホームディレクトリに、.vimrcを新しく設置します。

$ vi .vimrc
syntax on
set nobackup
set termencoding=utf-8
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=iso-2022-jp,euc-jp,utf-8,ucs2le,ucs-2

これでファイルの編集、保存も問題なくできるようになりました。

116 thoughts on “ロリポップのSSH接続でviの文字化けを解消する

  1. ピンバック: エックスサーバーにインストールした vim が文字化けする場合の対処法 | MacBook Air とWordPressでこうなった

  2. AlexisBrums

    Brevity is the key.
    Here’s a classic Japanese saying for you.
    Another example comes from Spider-Man, where Uncle Ben turns to Peter Parker and says, With great power comes great responsibility.
    Like George Washington, Sandys believed that telling the truth is always the way to go.
    He once stated, If you want a thing done well, do it yourself.
    The Purpose & Function of Aphorism
    Your stories can benefit from this method too.
    Curiosity killed the cat.
    If you do, you agree with George Herbert’s famous aphorism from his book, Outlandish Proverbs.
    Speaking of being safe, that’s another aphorism example that you’ve probably heard before.
    Michael Corleone from The Godfather II disagreed with that.
    Aphorism Examples in Everyday Speech
    The complete quote was, A Jack of all trades and master of none, but oftentimes better than a master of one.
    (I say these words to make me glad),
    For example.
    Don’t judge a book by its cover.

    返信
  3. cbd store

    Have you tried the untrained item bar product? I’m unshakable you can devise the veracious mood with our CBD pen. Made with clear cannabis oil extracted from organically grown hemp, our CBD grease vaporizer trappings is suitable in compensation anyone who is agog or needs help to impassive down and focus. If in a trice this mechanism does not stop working, then devise advise you, the actions that you have occasion for to do are described in detail.

    返信
    1. pharmacy intern

      I got this website from my pal who told me on the topic of this site and at the moment this time I am visiting this web site and reading very informative content at this time.

      返信
  4. Dab rigs

    I walked into the headshop with a implicate of meddlesomeness and trepidation. The walls were lined with shelves and pageantry cases filled with colorful pipes, bongs, and other smoking accessories. The air was solid with the batty about bon-bon pong of incense, and reggae music played softly in the background. A chummy saleslady greeted me and asked if I needed mitigate verdict anything. I admitted that I was a crumb overwhelmed during the set, and he offered to show me some of their best-selling items. As he pulled gone from a lustrous, silverware vaporizer, he explained how it worked and the benefits of using it throughout time-honoured smoking methods. He also showed me a variety of flavored rolling papers and a grinder with a cool design. I ended up leaving with a occasional items, sensibility disconcerted to go exposed my fresh purchases. The judgement had been surprisingly enjoyable, and I was impressed by way of the knowledgeable and friendly staff. I couldn’t hang on to report in back and enquire into more of what the headshop had to offer.

    返信
  5. mexican pharmacies

    I was suggested this website via my cousin. I am not positive whether or not this publish is written by way of him as no one else recognise such special approximately my problem. You are incredible! Thanks!

    返信
  6. canada pharmaceuticals

    I think this is one of the most important info for me. And i’m glad reading your article. But wanna remark on some general things, The web site style is great, the articles is really nice : D. Good job, cheers

    返信
  7. viagra generic online pharmacy

    Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your weblog? My blog is in the very same niche as yours and my visitors would truly benefit from a lot of the information you present here. Please let me know if this alright with you. Appreciate it!

    返信
  8. canadian pharmaceuticals for usa sales

    I’m really enjoying the theme/design of your website. Do you ever run into any web browser compatibility problems? A handful of my blog readers have complained about my blog not working correctly in Explorer but looks great in Chrome. Do you have any suggestions to help fix this problem?

    返信
  9. canadian pharmaceuticals

    Hi there I am so happy I found your website, I really found you by accident, while I was looking on Digg for something else, Nonetheless I am here now and would just like to say thanks for a fantastic post and a all round thrilling blog (I also love the theme/design), I don’t have time to go through it all at the minute but I have book-marked it and also included your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the excellent job.

    返信
  10. canadian pharmaceuticals online

    My developer is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the expenses. But he’s tryiong none the less. I’ve been using WordPress on a number of websites for about a year and am nervous about switching to another platform. I have heard fantastic things about blogengine.net. Is there a way I can transfer all my wordpress posts into it? Any kind of help would be really appreciated!

    返信
  11. canada pharmaceuticals

    Thanks , I have just been looking for information about this topic for a while and yours is the best I have discovered till now. But, what concerning the bottom line? Are you positive about the source?

    返信
  12. canadian pharmaceuticals online safe

    You are so interesting! I do not think I’ve truly read a single thing like this before. So wonderful to discover somebody with a few genuine thoughts on this subject matter. Seriously.. many thanks for starting this up. This web site is one thing that’s needed on the web, someone with some originality!

    返信
  13. compound pharmacy

    It’s a shame you don’t have a donate button! I’d certainly donate to this brilliant blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to new updates and will share this blog with my Facebook group. Chat soon!

    返信
  14. pharmacy online drugstore

    Unquestionably believe that which you said. Your favorite justification appeared to be on the net the simplest thing to be aware of. I say to you, I certainly get annoyed while people think about worries that they plainly don’t know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side-effects , people could take a signal. Will probably be back to get more. Thanks

    返信
  15. pharmacy online shopping

    Wonderful beat ! I wish to apprentice at the same time as you amend your site, how can i subscribe for a blog website? The account aided me a acceptable deal. I have been tiny bit familiar of this your broadcast offered vivid transparent idea

    返信
  16. canadian pharmaceuticals

    Excellent site you have here but I was curious if you knew of any forums that cover the same topics talked about here? I’d really like to be a part of online community where I can get advice from other knowledgeable individuals that share the same interest. If you have any recommendations, please let me know. Cheers!

    返信
  17. canadian pharcharmy online

    Thanks for your personal marvelous posting! I definitely enjoyed reading it, you might be a great author.I will remember to bookmark your blog and will eventually come back in the future. I want to encourage one to continue your great writing, have a nice day!

    返信
  18. walmart pharmacy online

    Right here is the right blog for everyone who wishes to find out about this topic. You know a whole lot its almost tough to argue with you (not that I personally would want to…HaHa). You certainly put a brand new spin on a subject that has been discussed for many years. Great stuff, just wonderful!

    返信
  19. canadian pharmaceuticals online safe

    Hey very cool site!! Man .. Beautiful .. Superb .. I will bookmark your website and take the feeds additionally? I’m happy to seek out a lot of useful information here in the put up, we want work out more strategies in this regard, thank you for sharing. . . . . .

    返信
  20. pharmacy online cheap

    I like the helpful information you provide in your articles. I will bookmark your weblog and check again here frequently. I am quite certain I’ll learn plenty of new stuff right here! Good luck for the next!

    返信
  21. canadian drugs pharmacy

    Hi there exceptional website! Does running a blog such as this require a lot of work? I have no knowledge of programming but I was hoping to start my own blog in the near future. Anyhow, should you have any recommendations or tips for new blog owners please share. I understand this is off subject but I just needed to ask. Thanks!

    返信
  22. canadian pharmaceuticals online safe

    hello there and thank you for your info – I’ve definitely picked up anything new from right here. I did however expertise several technical points using this website, since I experienced to reload the website many times previous to I could get it to load properly. I had been wondering if your hosting is OK? Not that I’m complaining, but sluggish loading instances times will very frequently affect your placement in google and can damage your high quality score if ads and marketing with Adwords. Anyway I am adding this RSS to my email and can look out for a lot more of your respective interesting content. Ensure that you update this again very soon.

    返信
  23. medical pharmacy

    Hello would you mind stating which blog platform you’re working with? I’m planning to start my own blog soon but I’m having a hard time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design and style seems different then most blogs and I’m looking for something unique. P.S My apologies for getting off-topic but I had to ask!

    返信
  24. drugstore online

    Just wish to say your article is as surprising. The clarity in your post is just great and i could assume you are an expert on this subject. Fine with your permission allow me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please continue the gratifying work.

    返信
  25. canadian online pharmacy

    I don’t know if it’s just me or if perhaps everybody else experiencing problems with your blog. It appears as though some of the written text on your content are running off the screen. Can somebody else please comment and let me know if this is happening to them as well? This might be a problem with my browser because I’ve had this happen before. Kudos

    返信
  26. canada pharmaceuticals online

    I’m no longer certain the place you are getting your information, but good topic. I needs to spend a while studying more or working out more. Thank you for fantastic information I was in search of this information for my mission.

    返信
  27. canada pharmaceuticals

    I am not positive the place you’re getting your info, however good topic. I needs to spend a while studying more or working out more. Thank you for wonderful info I was on the lookout for this information for my mission.

    返信
  28. canadian pharmaceutical companies

    I’ve been surfing online greater than 3 hours as of late, yet I never found any attention-grabbing article like yours. It’s pretty worth enough for me. In my opinion, if all site owners and bloggers made excellent content as you probably did, the internet will be a lot more useful than ever before.

    返信
  29. canadian pharmacy

    We’re a group of volunteers and opening a new scheme in our community. Your web site offered us with valuable information to work on. You have performed an impressive job and our entire group might be thankful to you.

    返信
  30. canadian pharmaceuticals

    Hi there would you mind letting me know which web host you’re utilizing? I’ve loaded your blog in 3 different browsers and I must say this blog loads a lot faster then most. Can you recommend a good hosting provider at a reasonable price? Thank you, I appreciate it!

    返信
  31. pharmacy intern

    I was curious if you ever considered changing the layout of your website? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or two images. Maybe you could space it out better?

    返信
  32. compound pharmacy

    Hi there would you mind stating which blog platform you’re using? I’m going to start my own blog in the near future but I’m having a hard time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I’m looking for something unique. P.S My apologies for being off-topic but I had to ask!

    返信
  33. canada pharmaceuticals

    I know this if off topic but I’m looking into starting my own blog and was wondering what all is required to get setup? I’m assuming having a blog like yours would cost a pretty penny? I’m not very internet smart so I’m not 100% positive. Any recommendations or advice would be greatly appreciated. Many thanks

    返信
  34. pharmacies shipping to usa

    I like the valuable information you supply on your articles. I will bookmark your weblog and check again here frequently. I am reasonably certain I’ll be informed a lot of new stuff proper here! Best of luck for the next!

    返信
  35. canadian online pharmacy

    hello there and thank you for your information – I have certainly picked up something new from right here. I did however expertise several technical issues using this site, as I experienced to reload the web site many times previous to I could get it to load correctly. I had been wondering if your web hosting is OK? Not that I’m complaining, but slow loading instances times will often affect your placement in google and could damage your high quality score if ads and marketing with Adwords. Anyway I’m adding this RSS to my e-mail and can look out for much more of your respective fascinating content. Make sure you update this again very soon.

    返信
  36. canada pharmaceuticals online

    Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You clearly know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be giving us something informative to read?

    返信
  37. pharmacies in canada

    Wow that was strange. I just wrote an really long comment but after I clicked submit my comment didn’t appear. Grrrr… well I’m not writing all that over again. Anyway, just wanted to say fantastic blog!

    返信
  38. pharmacies online

    Attractive component of content. I just stumbled upon your site and in accession capital to assert that I get in fact enjoyed account your blog posts. Anyway I’ll be subscribing to your augment and even I success you get entry to constantly quickly.

    返信
  39. canada pharmacy

    Wonderful post however , I was wanting to know if you could write a litte more on this topic? I’d be very grateful if you could elaborate a little bit more. Many thanks!

    返信
  40. canadian pharmaceuticals online

    Wonderful beat ! I would like to apprentice while you amend your web site, how could i subscribe for a blog web site? The account helped me a acceptable deal. I had been tiny bit acquainted of this your broadcast provided bright clear idea

    返信
  41. canadian pharmaceuticals online

    Fantastic website you have here but I was curious if you knew of any user discussion forums that cover the same topics discussed in this article? I’d really like to be a part of group where I can get feedback from other experienced individuals that share the same interest. If you have any suggestions, please let me know. Many thanks!

    返信
  42. cialis pharmacy online

    It is perfect time to make some plans for the future and it’s time to be happy. I’ve learn this put up and if I could I desire to suggest you few attention-grabbing issues or suggestions. Perhaps you can write subsequent articles regarding this article. I want to learn even more issues about it!

    返信
  43. canadian pharmaceuticals online

    I have been browsing online more than 3 hours these days, but I never found any attention-grabbing article like yours. It’s lovely worth enough for me. In my view, if all site owners and bloggers made excellent content as you did, the web might be a lot more useful than ever before.

    返信
  44. pharmaceuticals online australia

    You actually make it appear so easy together with your presentation however I find this topic to be actually one thing which I believe I’d never understand. It sort of feels too complex and very huge for me. I am having a look ahead in your next publish, I will try to get the grasp of it!

    返信

canadian pharmaceuticals usa へ返信する コメントをキャンセル

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です