首页 > 系统服务 > 详细

vimrc配置文件

时间:2021-09-11 12:03:05      阅读:37      评论:0      收藏:0      [点我收藏+]

命令:
vim ~/.vimrc
vimrc配置文件:

" => Chapter 1: Getting Started --------------------------------------- {{{

syntax on                  " Enable syntax highlighting.
filetype plugin indent on  " Enable file type based indentation.

set autoindent             " Respect indentation when starting a new line.
"set expandtab              " Expand tabs to spaces. Essential in Python.
set tabstop=4              " Number of spaces tab is counted for.
set shiftwidth=4           " Number of spaces to use for autoindent.

set backspace=2            " Fix backspace behavior on most terminals.

colorscheme desert         " Change a colorscheme.

" => Chapter 2: Advanced Movement and Navigation ---------------------- {{{

" Navigate windows with <Ctrl-hjkl> instead of <Ctrl-w> followed by hjkl.
noremap <c-h> <c-w><c-h>
noremap <c-j> <c-w><c-j>
noremap <c-k> <c-w><c-k>
noremap <c-l> <c-w><c-l>

set foldmethod=indent           " Indentation-based folding.

set wildmenu                    " Enable enhanced tab autocomplete.
set wildmode=list:longest,full  " Complete till longest string, then open menu.

set number                     " Display column numbers.

" set relativenumber             " Display relative column numbers.

set hlsearch                    " Highlight search results.
set incsearch                   " Search as you type.

set clipboard=unnamed,unnamedplus  " Copy into system (*, +) registers.

" => Chapter 3: Follow the Leader: Plugin Management ------------------ {{{

" Install vim-plug if it‘s not already installed (Unix-only).
" if empty(glob(‘~/.vim/autoload/plug.vim‘))
"    silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
"      \ https://raw.github.com/junegunn/vim-plug/master/plug.vim
"    autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
" endif
"
" call plug#begin()  " Manage plugins with vim-plug.
"
" Plug ‘ctrlpvim/ctrlp.vim‘
" Plug ‘easymotion/vim-easymotion‘
" Plug ‘mileszs/ack.vim‘
" Plug ‘scrooloose/nerdtree‘, { ‘on‘: ‘NERDTreeToggle‘ }
" Plug ‘tpope/vim-unimpaire

vimrc配置文件

原文:https://www.cnblogs.com/yejiaxing-01/p/15253034.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!