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/
  • 相关阅读:
    【译】Arc 在 Rust 中是如何工作的
    TCP连接时动态端口的相关问题说明
    技巧:如何区分dll程序集的编译目标平台(同样适用于查看程序集的其它依赖)
    探究:nuget工具对不再使用的dll文件的处理策略
    .net core迁移实践:项目文件csproj的转换
    nuget使用经验:复杂依赖关系下的包版本问题
    rsyslog学习和使用记录
    死锁场景:双Update操作的情况
    kubernetes官网对中国区的优待
    数据库死锁分析和说明:select和update死锁场景举例
  • 原文地址:https://www.cnblogs.com/yejiaxing-01/p/15253034.html
Copyright © 2011-2022 走看看