GithubHelp home page GithubHelp logo

vimrc's Introduction

vim 配置

这里提供一个通用的 .vimrc 配置文件,使用 Vundle 管理插件,并且对 Vim 的一些默认设置进行了优化

说明

  • .vimrc 是 Vim 的配置文件,稍加修改可使 Vim 使用更加顺手
  • Vundle 是一个 Vim 插件管理工具,可以方便地安装各种 Vim 插件
  • vim-airline 使用了 Powerline 字体,用于显示状态栏的各种图标
快捷键 功能
F2 切换行号显示状态,便于复制
F3 切换 paste 模式,用于粘贴代码
F4 打开/关闭 NERD 目录窗口
F5 打开 ctags 窗口
F6 生成 ctags
ctrl+h 切换到左边的窗口
ctrl+j 切换到下边的窗口
ctrl+k 切换到上边的窗口
ctrl+l 切换到右边的窗口
normal状态 tab 键 切换 buffer

安装方法

  1. 安装 Vundle

    $ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

  2. 复制 vimrc 配置文件

    $ git clone https://github.com/gorden5566/vimrc.git ~/.vim/vimrc

    $ cp ~/.vim/vimrc/vimrc ~/.vimrc

  3. 安装 Vundle 插件

    使用 Vim 打开任意文件

    $ vim test

    执行 VundleInstall 的安装命令

    :PluginInstall

    待安装完后退出 Vim

    :qa

  4. 安装 Powerline 字体

    下载 powerline 字体

    $ git clone https://github.com/powerline/fonts.git

    安装字体

    $ cd font

    $ sh ./install.sh

  5. 设置终端样式

    常规:去掉允许粗体字,设置字体为 Noto Mono for Powerline Regular

    颜色:取消使用系统主题中的颜色的勾选,设置内置方案为深色的 Solarized,设置调色板内置方案为 Linux 控制台

  6. 使用Vim打开文件查看效果

    vim ~/.vimrc

image

vimrc's People

Contributors

gorden5566 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

dezhu123

vimrc's Issues

debian 中文乱码

set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1
set enc=utf8
set fencs=utf8,gbk,gb2312,gb18030

option 'g:NERDTreeIndicatorMapCustom' is deprecated, please use 'g:NERDTreeGitStatusIndicatorMapCustom'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.