Eyeeshot BloG

vi 에서 붙여넣기 했을때 탭 깨지는 현상 해결방법 본문

Tech

vi 에서 붙여넣기 했을때 탭 깨지는 현상 해결방법

eyeeshot 2021. 1. 11. 17:29

1. 명령모드에서 :set paste

2. /etc/vimrc 에서 set paste

set nocompatible
set encoding=utf-8
set softtabstop=4
set tabstop=4
set shiftwidth=4
set undolevels=1024
set history=64
set modelines=32
set modeline
set backup
set ruler
set showmatch
set hlsearch
set incsearch
set ignorecase
set smartcase
set autoindent
set backspace=indent,eol,start
set wildmenu
set showcmd
set nobackup
set nofoldenable
set paste

filetype indent plugin on
syntax on

map <PageUp> <C-u>
map <PageDown> <C-d>
imap <PageUp> <C-o><C-u>
imap <PageDown> <C-o><C-d>

inoremap <Esc>Oq 1
inoremap <Esc>Or 2
inoremap <Esc>Os 3
inoremap <Esc>Ot 4
inoremap <Esc>Ou 5
inoremap <Esc>Ov 6
inoremap <Esc>Ow 7
inoremap <Esc>Ox 8
inoremap <Esc>Oy 9
inoremap <Esc>Op 0
inoremap <Esc>On .
inoremap <Esc>OQ /
inoremap <Esc>OR *
inoremap <Esc>Ol +
inoremap <Esc>OS -
inoremap <Esc>OM <Enter>

 

'Tech' 카테고리의 다른 글

Git remote url change  (0) 2021.01.18
Synology Nas 에서 Python3 와 pip설치  (0) 2021.01.12
SSH 접속시 RSA 공유키 충돌 해결방법  (0) 2020.12.03
ELB Websocket 설정 문제  (0) 2020.12.03
Sping boot + websocket Hands On  (0) 2020.12.03