Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

STUDY

gVim Configuration 본문

emacs

gVim Configuration

__main__ 2020. 6. 4. 18:03

 Vim, Emacs, Vscode, Visual studio, Atom, Sublime text 등 Text Editor의 종류는 매우 다양. 각각 장단점이 있지만, Windows에서는 vscode 하나만 설치해도 대부분 충분. 그러나 vi 혹은 vim 만큼은 배워놓으면 유용할 수도 있을 것이란 생각. 이유는 (a) 다른 IDE를 사용하지 못 할 정도의 최악의 조건에서 가장 마지막까지 남아서 사용할 수 있는 text editor라는 점, (b) 오랜 기간 여러 개발자들에게 검증되었고 최신 IDE가 난무하는 요즘에도 사용하는 분들이 많을 정도라는 점, (c) 유닉스 계열에는 builtin으로 vi가 이미 설치되었다는 점, (d) vi 혹은 vim의 설치 용량이 매우 작다는 점, (e) 사용법을 배우는 시간이 소요되지만 일단 배워놓으면 크게 도움이 된다는 점, (f) 마우스를 사용하지 않는 것이 코딩에 집중할 수 있는 방법이라는 점, (g) 적지 않은 유튜브 동영상을 보면 고오오오급 개발자들이 사용한다는 점, (h) terminal, shell 등 리눅스 계열 개발자들이 흔히 사용한다는 점, (i) vim script를 알면 자신에게 최적화할 수 있다는 점, (j) Emacs도 물론 오래되었고, 검증되었고, vim보다 훨씬 많은 기능을 가진 IDE이지만 Emacs는 용량이 vim보다 훨신 크다는 점 등.  

 

1. Download gVim from [ official Vim site ]

2. Install gVim 

3. Download [ plug.vim ] and put it in the "autoload" directory.

4. Make 'C:\Program Files (x86)\Vim\.vimrc' file 

5. Edit '.vimrc' file  (인터넷을 검색하면 여러 분들이 자신의 vimrc 파일을 공개, 필요한 것들만 짜집기)

 

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"" Vim Plug
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

call plug#begin('C:/Program Files (x86)/Vim/plugged')

Plug 'altercation/vim-colors-solarized'  " solarized theme
Plug 'vim-airline/vim-airline'           " ariline status
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-surround'                " surround
Plug 'scrooloose/syntastic'              " systax checking
Plug 'majutsushi/tagbar'                 " tag bar

call plug#end()

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"" Plugin Setting
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

let g:deoplete#enable_at_startup = 1


"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"" Custom Setting
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

set number                           " line munber
set guifont=ubuntu_mono:h14          " font, size

syntax enable                   
set background=dark
colorscheme solarized                " solarized color theme

if has("syntax")                     " syntax highlight
 syntax on
endif

if $LANG[0]=='k' && $LANG[1]=='o'    " file coding
  set fileencoding=korea
endif

set lines=50 columns=100             " window size
set smartcase                        " search case-sensitive

let g:airline#extensions#tabline#enabled = 1


"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"" Key ShortCuts
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

nmap  :TagbarToggle          " togglebar
nmap  :w

 

 Vim 설정 파일 내용은 개인에 따라 제각각. 사용하면서 차차 추가하기로. NeoVim이란 것도 있지만, 윈도우에서 뭔가 해보기 껄끄럽고 자칫 vim의 최대 장점을 잃는 것일 수도 있을 것이란 우려. 시간을 두고 살펴볼 것.

'emacs' 카테고리의 다른 글

Emacs Configuration File  (0) 2020.11.25
Useful key bindings  (0) 2019.02.06
Changing the location of Emacs' config. file  (0) 2019.01.24
Vim - Select Multiple Cursors  (0) 2019.01.13
Comments