Last active
August 14, 2019 02:29
-
-
Save taking/2d762c0d0a63120ace2fa3b87bf262e5 to your computer and use it in GitHub Desktop.
Last Modified (19-08-14)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" General | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Sets how many lines of history VIM has to remember | |
" VIM์์ ๊ธฐ์ตํ ํ์คํ ๋ฆฌ ๋ผ์ธ์ | |
set history=1000 | |
" Set to auto read when a file is changed from the outside | |
" ํ์ฌ ์ฌ์ฉํ๊ณ ์๋ ํ์ผ์ด ์ธ๋ถ์์ ์์ ๋ ๊ฒฝ์ฐ ์๋์ผ๋ก ์ฝ๊ธฐ | |
set autoread | |
" Set to auto write on opening an other file. | |
" ๋ค๋ฅธ ํ์ผ์ ์ฝ๊ฒ ๋๋ ๊ฒฝ์ฐ ํ์ฌ ํ์ผ์ ์๋์ผ๋ก ์ ์ฅํ๊ธฐ | |
" ํ์ฌ ํ์ผ์ ์ ์ฅํ์ง ์์ผ๋ฉด ":e" ๋ฑ์ผ๋ก ๋ค๋ฅธ ํ์ผ์ ์ด ์ ์์. | |
set autowrite | |
" Use mouse or not | |
" ๋ง์ฐ์ค๋ก ํด๋ฆญํ ์์น์ ์ปค์ ๋๊ธฐ | |
" ๋ง์ฐ์ค๋ก ๋๋๊ทธํ ์์ญ์ ๋น์ฅฌ์ผ ๋ชจ๋๋ก ๋ณต์ฌ์ค๋นํ๊ธฐ | |
" ๋จ ๋ง์ฐ์ค๋ฅผ ์ฌ์ฉํ๋ฉด, ๋ง์ฐ์ค ์ค๋ฅธ ๋ฒํผ์ ๋๋ฌ ๋์ค๋ ๋ณต์ฌ๋ฅผ ์ ํํ ์ ์์. | |
" ๋ง์ฐ์ค๋ฅผ ์ฌ์ฉํ์ง ์์ผ๋ ค๋ฉด, ":set mouse-=a"๋ฅผ ์น๊ธฐ | |
set mouse-=a | |
"์ปค์๊ฐ ์๋ ๋ผ์ธ์ ํ์ด๋ผ์ดํธ ํ์ | |
set cul | |
" list ์ต์ backspace ๋ฅผ indent,eol,start ๋ก ์ค์ | |
set backspace=indent,eol,start | |
set linebreak | |
" ํ ์ค์ด ๋๋ฌด ๊ธธ์ด ์ฌ๋ฌ ์ค๋ก ํํ๋ ๋, ์๋์ชฝ ์ค๋ค์ด ์์ชฝ ์ค์์ ์ด์ด์ง์ ์ค์ ํ ๊ธฐํธ๋ฅผ ์ฌ์ฉํด ๊ฐ์ฅ ์ผ์ชฝ์ ํ์ | |
let &showbreak = '+++ ' | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" VIM user interface | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Always show current position | |
" ์ค๋ฅธํธ ํ๋จ์ ํ์ฌ ์์น์ (ํ, ๋ ฌ)์ ํ์ | |
set ruler | |
" Highlight search results | |
" ๊ฒ์๊ฒฐ๊ณผ์ ํ์ด๋ผ์ดํธ ํ์ํ๊ธฐ | |
set hlsearch | |
" Makes search act like search in modern browsers | |
" ํ๊ธ์ ์ ๋ ฅํ ๋๋ง๋ค ๋งค์น๋๋ ๋ถ๋ถ ํ์ํ๊ธฐ | |
set incsearch | |
" Show matching brackets when text indicator is over them | |
" ํ์ฌ ์ปค์๊ฐ ๋์ฌ์ง ๊ดํธ์ ์ง์ ํ์ํ๊ธฐ | |
set showmatch | |
" line number | |
" ๋ผ์ธ๋๋ฒ ํ์ํ๊ธฐ | |
set number | |
" ์ผ๋ฐ๋ชจ๋์์ / ๊ฒ์ ์, ๋์๋ฌธ์ ๊ตฌ๋ถํ์ง ์๊ธฐ | |
set ignorecase | |
" ๊ฒ์์ด์ ๋๋ฌธ์๊ฐ ํฌํจ๋์ด ์๋ค๋ฉด ๋์๋ฌธ์๋ฅผ ๋ฌด์ํ์ง ์๊ธฐ | |
set smartcase | |
" ์์ฑ์ค์ธ ๋ช ๋ น์ ํ์ | |
set sc | |
" F1 ํญ ์ถ๊ฐ | |
nmap <F1> :tabnew<CR> | |
" F2 ์ฐฝ ๊ฐ ์ด๋ | |
nmap <F2> <C-w><C-w> | |
" Shift+Tab ํญ ๊ฐ ์ด๋, [gt -> / gT <-] | |
nmap <S-Tab> gt<CR> | |
" F3์ ์ ์ฅํ๊ณ ๋๊ฐ๊ธฐ | |
nmap <F3> :wq!<CR> | |
" F4๋ ํ์ฌ์ฐฝ ๋ซ๊ธฐ | |
nmap <F4> :q!<CR> | |
nmap <F11> <C-w><h><CR> | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Colors and Fonts | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" syntax highlight | |
" ์ธ์ด syntax์ ํ์ด๋ผ์ดํธํ์ | |
syntax on | |
" color scheme | |
" ์ปฌ๋ฌ์คํด | |
colorscheme sublimemonokai "solarized, mango, sublimemonokai | |
set background=dark | |
set t_Co=256 | |
" Set utf8 as standard encoding | |
" utf8์ ํ์ค ์ธ์ฝ๋ฉ์ผ๋ก ์ฌ์ฉํ๊ธฐ | |
set encoding=utf8 | |
set fileencoding=utf-8 | |
set tenc=utf-8 | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Text, tab and indent related | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" auto indent's tab size | |
" ์๋ํญ ์ฌ์ด์ฆ๋ฅผ 4์นธ์ผ๋ก ํ๊ธฐ | |
set shiftwidth=4 | |
" 1 tab == 4 spaces | |
" ํญ์ 4์นธ์ผ๋ก ํ๊ธฐ | |
set tabstop=4 | |
" ํญ ๋์ ์คํ์ด์ค ์ฌ์ฉ | |
" ์ด ๋ถ๋ถ์ .editorconfig ์ฌ์ฉํ๊ธฐ๋ก | |
"set expandtab | |
" c style auto indent | |
" c์ธ์ด ์คํ์ผ๋ก indentationํ๊ธฐ | |
set cindent | |
" ๋ค์ ๋ผ์ธ์ ํธ์งํ ๋ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด ์ ํ์ค๋ฅผ ๊ณ ๋ คํ์ฌ ์๋์ผ๋ก ์ธ๋ดํธ๋ฅผ ๋ฃ์ด์ฃผ๋ ๊ธฐ๋ฅ | |
set smartindent | |
set wrap | |
set nowrapscan | |
set nobackup | |
set noswapfile | |
set laststatus=2 | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Coding | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" fold functions by indent or syntax. | |
" open a folded function using 'zo' | |
" clase a function using 'zc' | |
" syntax์ ๋ฐ๋ผ ์ ์ด๋๊ธฐ | |
" ์ ์ ๊ฒ์ ์ด๋ ค๋ฉด, zo๋ฅผ ๋๋ฅด๊ธฐ | |
" ์ฐ ๊ฒ์ ๋ค์ ์ ์ผ๋ ค๋ฉด, zc๋ฅผ ๋๋ฅด๊ธฐ | |
" #set foldmethod=indent | |
" ์ต๋ ๊น์ด๋ 1๊ฐ๋ก ๊ณ ์ | |
" set foldnestmax=1 | |
" title ํ์ | |
set title | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Plugin | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'The-NERD-tree' " Vim ์์ ํ์ผ ํ์๊ธฐ ์ฌ์ฉ | |
let NERDTreeWinPos = "left" | |
nmap <F7> : NERDTree<CR> | |
Plugin 'AutoComplPop' " VIM ์๋์์ฑ๊ธฐ๋ฅ(Ctrl+P) | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline#extensions#tabline#left_sep = ' ' | |
let g:airline#extensions#tabline#left_alt_sep = '|' | |
let g:airline_theme='papercolor' | |
Plugin 'Tagbar' | |
nmap <F8> :TagbarToggle<CR> | |
Plugin 'togglenumber' | |
nmap <F5> :ToggleNumber<CR> | |
Plugin 'airblade/vim-gitgutter' " ์ฝ๋ ๋ณ๊ฒฝ ๋ด์ญ์ ํ๋์ | |
Plugin 'tpope/vim-fugitive' " Vim์์ Git ์ฌ์ฉํ๊ธฐ | |
Plugin 'scrooloose/syntastic' " ์ฝ๋ ๋ฌธ๋ฒ ์ฒดํฌ | |
Plugin 'ctrlpvim/ctrlp.vim' " ํ์ผ ์ฐพ๊ธฐ ๊ธฐ๋ฅ (์ฌ์ฉ๋ฒ : Control + P) | |
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux | |
"set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows | |
let g:ctrlp_custom_ignore = { | |
\ 'dir': '\v[\/]\.(git|hg|svn)$', | |
\ 'file': '\v\.(exe|so|dll)$', | |
\ 'link': 'some_bad_symbolic_links', | |
\ } | |
let g:ctrlp_map = '<c-p>' | |
" plugin from http://vim-scripts.org/vim/scripts.html | |
Plugin 'L9' | |
Plugin 'git://git.wincent.com/command-t.git' | |
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} | |
call vundle#end() " required | |
filetype plugin indent on " required |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/taking/c39d45d705d4f45a0885b4d119ab5acf ์ฐธ๊ณ