Last active
May 2, 2018 06:21
-
-
Save bakyeono/9ee9e90d96d6f7479d64 to your computer and use it in GitHub Desktop.
This file contains 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
" Load Plugins (Vundle) | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
" Plugin 'viewdoc' | |
Plugin 'ctrlp.vim' | |
Plugin 'Buffergator' | |
Plugin 'guns/vim-clojure-static' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'tpope/vim-surround' | |
Plugin 'tpope/vim-classpath' | |
Plugin 'tpope/vim-fireplace' | |
Plugin 'tpope/vim-rails' | |
Plugin 'tpope/vim-ragtag' | |
Plugin 'tpope/vim-unimpaired' | |
Plugin 'ervandew/supertab' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'mxw/vim-jsx' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'kovisoft/slimv' | |
Plugin 'tomtom/tcomment_vim' | |
Plugin 'mattn/webapi-vim' | |
Plugin 'mattn/gist-vim' | |
Plugin 'mattn/emmet-vim' | |
Plugin 'matchit.zip' | |
Plugin 'csv.vim' | |
" Plugin 'othree/html5.vim' | |
" Plugin 'othree/xml.vim' | |
Plugin 'ratazzi/blackboard.vim' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'majutsushi/tagbar' | |
Plugin 'bling/vim-airline' | |
Plugin 'tomasr/molokai' | |
Plugin 'morhetz/gruvbox' | |
Plugin 'diepm/vim-rest-console' | |
call vundle#end() | |
filetype plugin indent on | |
" General Settings | |
" How many lines of history VIM to remember | |
set history=1000 | |
" Auto read on files change outside | |
set autoread | |
" Leader key | |
let mapleader = ";" | |
let g:mapleader = ";" | |
" UI | |
" Set 7 lines to the cursor - when moving vertically using j/k | |
set scrolloff=7 | |
" WiLd menu | |
set wildmenu | |
set wildignore=*.o,*~,*.pyc | |
" Configure backspace | |
set backspace=eol,start,indent | |
set whichwrap+=<,>,h,l | |
" Smart case on search | |
set smartcase | |
" Highlight search results | |
set hlsearch | |
" Search like in modern browsers | |
set incsearch | |
" Don't redraw while executing macros for performance | |
set lazyredraw | |
" Magic for regular expressions | |
set magic | |
" No error sounds | |
set noerrorbells | |
set novisualbell | |
set t_vb= | |
set tm=500 | |
" Syntax highlighting | |
syntax enable | |
" Color | |
set t_Co=256 | |
let base16colorspace=256 | |
colorscheme molokai | |
colorscheme gruvbox | |
" Font | |
set guifont=Consolas:h14 | |
" Locale & Encoding | |
set encoding=utf8 | |
set fencs=ucs-bom,utf-8,cp949,euc-kr,default,latin1 | |
" Unix file type first | |
set ffs=unix,dos,mac | |
" Files, backup off (use VCS) | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
" File Extension | |
autocmd BufNewFile,BufRead *.md set filetype=markdown | |
" Text, tab and indent related | |
" Use spaces instead of tabs | |
set expandtab | |
" Be smart when using tabs ;) | |
set smarttab | |
" 1 tab == 2 spaces | |
set shiftwidth=2 | |
set tabstop=2 | |
" Retab | |
autocmd FileType c,cpp,py,java,lisp,clojure,html,xml,xsl retab | |
" Line number | |
set number | |
""" Moving around, tabs, windows and buffers | |
" Treat long lines as break lines (useful when moving around in them) | |
noremap j gj | |
noremap k gk | |
" Disable highlight when <leader><cr> is pressed | |
nnoremap <silent> <leader><cr> :nohlsearch<cr> | |
" Smart way to move between windows | |
nnoremap <C-j> <C-W>j | |
nnoremap <C-k> <C-W>k | |
nnoremap <C-h> <C-W>h | |
nnoremap <C-l> <C-W>l | |
" Switch CWD to the directory of the open buffer | |
nnoremap <leader>cd :cd %:p:h<cr>:pwd<cr> | |
" Return to last edit position when opening files (You want this!) | |
autocmd BufReadPost * | |
\ if line("'\"") > 0 && line("'\"") <= line("$") | | |
\ exe "normal! g`\"" | | |
\ endif | |
" Remember info about open buffers on close | |
set viminfo^=% | |
""" Plugin Options | |
""" CtrlP options | |
let g:ctrlp_custom_ignore = { | |
\ 'dir': '\v[\/](\.(git|hg|svn)|\_site)$', | |
\ 'file': '\v\.(exe|so|dll|class|png|jpg|jpeg|ai|psd|pdf|hwp|zip|gz|tar|7z|doc|docx|xsl|xslx|ppt|pptx)$', | |
\} | |
let g:ctrlp_working_path_mode = 'r' | |
""" Slimv options | |
let g:lisp_rainbow=0 | |
let g:paredit_mode=1 | |
let g:slimv_disable_clojure=1 | |
" vim_clojure_static options | |
let g:clojure_maxlines=200 | |
" gist options | |
let g:gist_use_password_in_gitconfig = 1 | |
let g:gist_open_browser_after_post=0 | |
let g:gist_show_privates=1 | |
let g:gist_post_private=1 | |
let g:gist_detect_filetype = 1 | |
" syntastic | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
let g:syntastic_javascript_checkers = [] | |
" let g:syntastic_javascript_checkers = ['jshint'] | |
" let g:syntastic_html_tidy_exec = 'tidy5' | |
" status line always | |
set laststatus=2 | |
" Shortcut Keys | |
noremap <F1> <NOP> | |
inoremap <F1> <NOP> | |
nnoremap <F2> :update<CR> | |
nnoremap <F3> :NERDTree<CR> | |
nnoremap <F4> :TagBar<CR> | |
nnoremap <F5> :registers<CR> | |
nnoremap <F6> :SyntasticCheck<CR> | |
nnoremap <F7> :tabnew<CR> | |
nnoremap <F8> :tabnext<CR> | |
nnoremap <F9> :Gist --list<CR> | |
" Use jh instead of ESC when exit insert mode | |
" inoremap <ESC> <NOP> | |
" inoremap jk <ESC> | |
nnoremap <Leader>a i\<주석\><ESC> | |
nnoremap <Leader>c i\</굵게\><ESC> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment