zoukankan      html  css  js  c++  java
  • 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/
  • 相关阅读:
    概率论
    计算机网络基础
    数据库 数据库管理系统 数据库系统
    第二次冲刺总结
    Beta版总结会议
    Beta阶段项目总结
    beta版本“足够好”/测试矩阵
    zencart批量更新后台邮箱地址sql
    php首页定向到内页代码
    用.htaccess 禁止IP访问
  • 原文地址:https://www.cnblogs.com/yejiaxing-01/p/15253034.html
Copyright © 2011-2022 走看看