• vimrc配置文件


    命令:
    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
    
    ———————————————————————————————————————————————————————————————— 转载麻烦附上本文链接和本声明,感谢! 博主<叶家星>博客园链接如下:https://www.cnblogs.com/yejiaxing-01/
  • 相关阅读:
    OpenCV-Python图形图像处理:利用黑帽去除图像浅色水印
    单片机实验四:定时器控制发光二极管的亮灭+简单输出连续矩形脉冲
    实验5 linux网络编程
    第十六届全国大学智能汽车竞赛竞速比赛规则-讨论稿
    写给自己的TypeScript 入门小纲
    写给自己的TypeScript 入门小纲
    Node.js自学笔记之回调函数
    Node.js自学笔记之回调函数
    来简书坚持一个月日更之后
    全选或者单选checkbox的值动态添加到div
  • 原文地址:https://www.cnblogs.com/yejiaxing-01/p/15253034.html
Copyright © 2020-2023  润新知