vim 에서 text 문서를 보거나, code 를 작성하고 관련 comment 를 영어로 남기는 경우에 spelling 확인하는 방법이 있다.

vim 7 버전에서 추가된 기능이며, 이후버전에서 간단히 사용 가능하다.


:set spell spelllang=en_us


spell 이 틀린 경우, 붉은색 박스로 표시된다.


아주 간단히 사용할 수 있는 vim tip.


원본 링크는: https://www.linux.com/learn/using-spell-checking-vim

'Development Tip' 카테고리의 다른 글

Git add -p 로 수정사항 분리하기  (0) 2014.04.16
Git: 특정 commit 으로 이동 후, amend 하기  (0) 2014.02.28
const char* vs. char const*  (0) 2014.02.19
Fish shell environment  (0) 2013.12.03
Kernel mailing list 활용 방법  (0) 2013.11.08

Origin url : http://vim.wikia.com/wiki/Autoloading_Cscope_Database


$ cscope -i <cscope files> 한 output database file 을 ~/.vimrc 에서

if filereadable("cscope.out") cs add cscope.out

endif


방식으로 추가하면 cscope.out 이 있는 directory 에서 vi /path/to/source/file 의 형식으로 open 해야 database file이 loading 된다.


대형 프로젝트에서 directory를 이동하며 source를 보는데, source trace 를 위해 project 최상위 directory(cscope.out file 이 위치하는)로 이동하는 번거러움을 없애기 위해 ~/.vimrc 에 script 를 찾아냈다.


~/.vimrc 에 위의 내용을 복사해서 붙이면 어느 path 에서나 cscope.out 을 찾아 loading 한다.


'Development Tip' 카테고리의 다른 글

Tips for VIM  (0) 2013.02.21
Use gerrit with git push command.  (0) 2013.02.20
Google Site Tool : File repository  (0) 2012.10.29
Ubuntu Console mode booting  (1) 2012.08.31
switch remote/branch by repo  (0) 2012.08.30

+ Recent posts