Skip to content

Instantly share code, notes, and snippets.

@sebatyler
Last active August 29, 2015 14:08
Show Gist options
  • Save sebatyler/3d5d5b107f0ab334646f to your computer and use it in GitHub Desktop.
Save sebatyler/3d5d5b107f0ab334646f to your computer and use it in GitHub Desktop.
"set nu
"set tenc=cp949
"set tenc=utf-8
"set enc=cp949
"set enc=utf-8
set shell=bash
set nocompatible
set nobackup
set cindent
set autoindent
set tabstop=8
set shiftwidth=8
set background=dark
set ruler
set showcmd
set hlsearch
set backspace=indent,eol,start
set wrap
set joinspaces
set smarttab
set smartindent
set incsearch
set showmatch
"set nocursorbind
"set fdm=marker
set tags=./tags;../tags
set fileencodings=utf-8,cp949,cp932,japan
set enc=utf-8
"set fenc=cp949
" vim-ruby
filetype on
filetype indent on
filetype plugin on
"
" status line
set statusline=%<%F%h%m%r%h%w%y\ %{strftime(\"%Y/%m/%d-%H:%M:%S\")}%=\ col:%c%V\ ascii:%b\ pos:%o\ lin:%l\,%L\ %P
" 마지막 편집 위치 복원 기능
au BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "norm g`\"" |
\ endif
" 검색어 강조
set hls
" 똑똑한 대소문자 구별 기능
set scs
au BufNewFile,BufRead *.sk set syntax=html
syntax on
function GDB_breakpoint ()
let s:line = line(".")
let s:debug_breakpoint = expand("%") . ":" . s:line
execute "! ( echo b" s:debug_breakpoint ") > .gdbinit"
endfunction
map <F3> :!make tags<CR>
map <F4> :!make install<CR>
map <F5> :!make run<CR>
map <F6> :!make -j<CR>
map <F9> :call GDB_breakpoint()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment