• 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/
  • 相关阅读:
    Sublime Text 无法使用Package Control或插件安装失败的解决方法
    phpstorm破解
    require
    在线支付
    解决华为手机用rem单位,内容超出屏幕宽度问题
    JS如何判断是不是iphoneX
    iPhoneX页面安全区域与内容重叠问题
    .NET 大数据量并发解决方案
    js 弹出div窗口 可移动 可关闭
    colgroup 整行变色
  • 原文地址:https://www.cnblogs.com/yejiaxing-01/p/15253034.html
Copyright © 2020-2023  润新知