vimrc
vimrc 파일(vi ~/.vimrc
or vi /etc/vimrc
)에 자주 사용하는 세팅이나 매크로 등을 입력해놓으면 vim 실행 때마다 초기에 적용시켜준다.
What does rc stand for?
Thus, it would seem that the “rc” part stands for “runcom”, which I believe can be expanded to “run commands”. In fact, this is exactly what the file contains, commands that bash should run.
https://unix.stackexchange.com/questions/3467/what-does-rc-in-bashrc-stand-for
example
출처가 어디인지는 잘 모르겠는데, 학부연구생때부터 쓰기 시작한 vimrc
vi ~/.vimrc
or vi /etc/vimrc
let s:cpo_save=&cpo
set cpo&vim
nmap gx <Plug>NetrwBrowseX
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("<cWORD>"),0)
let &cpo=s:cpo_save
unlet s:cpo_save
set nu
set backspace=indent,eol,start
set fileencodings=ucs-bom,utf-8,default,latin1
set helplang=en
set history=50
set nomodeline
set printoptions=paper:letter
set ruler
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
set bg=dark
set hlsearch
set ts=2
set shiftwidth=2
set autoindent
set cindent
set smartindent
set laststatus=2
set showmatch
syntax on
highlight Comment ctermfg=6
map <F3> <ESC>:cp<CR>
map <F4> <ESC>:cn<CR>
map <F5> <ESC>:cl<CR>
map <c-]> g<c-]>
map <F5> :s/^/\/\//<Enter>:noh<Enter>
map <F6> :s/^\/\//<Enter>:noh<Enter>
set path+=**
if &term =~ "xterm-debian" || &term =~ "xterm-xfree86"
set t_Co=16
set t_Sf=^[[3%dm
set t_Sb=^[[4%dm
set t_kb=^H
fixdel
endif
set tags=.tags
set tagstack
set ignorecase
set notagbsearch
filetype on"vim filetype on
nmap <F9> :TlistToggle<CR>
let Tlist_Exit_onlyWindow = 0
let Tlist_Autu_Open = 0
let Tlist_Use_Right_Window = 1
nmap <F8> :SrcExplToggle<CR>
nmap <C-H> <C-W>h
nmap <C-J> <C-W>j
nmap <C-K> <C-W>k
nmap <C-L> <C-W>l
let g:SrcExpl_winHeight = 8
let g:SrcExpl_refreshTime = 100
let g:SrcExpl_jumpkey = "<ENTER>"
let g:SrcExpl_gobackkey = "<SPACE>"
let g:SrcExpl_isUpdateTags = 0
set nocsverb
set csverb
set csto=0
set cst
highlight Comment term=bold cterm=bold ctermfg=4
참고
https://github.com/johngrib/simple_vim_guide/blob/master/md/vimrc.md