라즈베리파이/라즈베리파이 일반

vi의 rc파일

아크리엑터 2021. 4. 18. 22:01
반응형

 

내가 사용하는 vi rc파일이다.

홈디렉토리에 .vimrc 파일을 생성하고, 아래의 내용으로 저장했다.

.vimrc

" Vimrc_Setup_List
" Update Date : 26th Feb 2018

" Color scheme (terminal)
set background=dark             " Display
" highlight Normal ctermfg=white ctermbg=black

" Text Editor
set autoindent                  " always set autoindenting on
set smartindent                 " do clever autoindenting
set cindent                     " enable specific indenting for C code
set number                      " always show line numbers
"set nonumber
set showmatch                   " when inserting a bracket, briefly jump to its match
set tabstop=2                   " number of spaces a <Tab> in the text stands for (local to buffer)
set et
set sw=2
set paste                       " paste mode, insert typed text literally
set noshiftround                " oposite of round to 'shiftwidth' for << and >>
set copyindent                  " copy the previous indentation on autoindenting
set timeout timeoutlen=200 ttimeoutlen=100
set visualbell                  " don't beep
set noerrorbells                " don't beep
set autowrite                   " Save on buffer switch
set backspace=indent,eol,start  " allow backspacing over everything in insert mode
set nowrap                      " don't wrap lines
set tags=tags                   " list of file names to search for tags(global or local to buffer)

" Searching
" nnoremap / /\v 
" vnoremap / /\v 
set hlsearch                    " highlight all matches for the last used search pattern
set incsearch                   " show match for partly typed search command
set ignorecase                  " ignore case when searching
set smartcase                   " ignore case if search pattern is all lowercase
set showmatch                   " when inserting a bracket, briefly jump to its match
" Clear Search
map <leader><space> :let @/=''<cr>    

set history=256         " how many command lines are remembered
syntax off               " Turn on syntax highlighting
set fileencodings=utf-8,euc-kr      " Encoding
반응형