everydayminder
윈도우즈에서 작성된 파일을 linux/ OSX로 옮겨오다 보니, 가끔 원치 않는 개행 문자가 그대로 살아있는 경우가 있다. VI에서 해당 파일을 열어보면, ^M과 같이 표시되는데, 이를 치환/ 삭제 하려면 다음과 같이 입력한다. :%s/^M//g 그런데, 단순히 shift + 6 M을 입력하면 치환대상이 되지 않고, ^M을 입력할 때, ctrl + v, ctrl + M을 눌러서 입력하면 된다.
There are many blog posts about setting up vim as an IDE. This is for myself because I will be googling the posts again in the future whenever I change or reset my PC or account. 1. VIM brew install vim --with-override-system-vi My OSX is Sierra, 10.12, and it didn't go well without the option '--with-override-system-vi'. After installation, I was able to execute vim7 by hitting vi and vim8 by h..
Ubuntu 7.10에서 기본적으로 설치되어 있는 Vim은 Tiny 버전이다. 기타 필요한 VIM의 기능을 쓸 수가 없으므로, 재설치는 필수이다. 명령어) sudo apt-get install vim 그러나, 이 재설치가 제대로 안되는 경우가 있다. 이럴 때, Ubuntu 소스의 repository를 제대로 업데이트 해줘야 sudo apt-get update도 된다. 다음의 내용을 보완하자. /etc/apt/sources.list 파일에 아래의 내용을 추가(혹은 기존 내용은 모두 삭제 or 코멘트 처리)하면 된다. ## Daum Mirror Repository in Korea deb http://ftp.daum.net/ubuntu gutsy main multiverse restricted universe..