경박한 VIM
3042 단어 vim
vim 자동 들여쓰기 및 tap 스페이스 바 설정 4
우선 설정 정보를 수정해야 한다. 우선 어디서 수정했는지 알고 한 번만 말해야 한다. 파일 경로는
/etc/vim/vimrc
아래에 있다.sudo vim /etc/vim/vimrc
안에 다음과 같은 코드를 추가하면 우리가 말한 기능을 실현할 수 있다set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4
vim 재장착
sudo apt-get install --reinstall vim-gnome vim-gui-common vim-common vim-runtime
vim 플러그인 관리 및 설치
mkdir .vim
cd ~/.vim && mkdir bundle && cd bundle
클론 명령 코드는 다음과 같습니다.git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" Plugin 'ascenator/L9', {'name': 'newL9'}
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Lua에서 neovim 플러그인용 UI를 만드는 방법마지막 에서는 부동 창을 사용하여 Lua에서 플러그인을 만드는 기본 사항을 살펴보았습니다. 편리한 측면 탐색에서 마지막으로 연 파일을 표시하는 간단한 플러그인을 만들어 봅시다. 인터페이스 학습에 집중하면서 이러한 목...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.