Code Monkey home page Code Monkey logo

vim's Introduction

My Vim configuration bundle forked from guochunyang.


1 下载与安装

git clone https://github.com/cuckootan/vim.git ~/.vim
cp ~/.vim/vimrc ~/.vimrc

2 配置

2.1 配置主题颜色

由于在终端背景颜色为黑色的时候,用 vim 打开的文件中的注释看不清,因此需要将注释的颜色改成其他颜色:

打开 ~/.vimrc,在最后添加如下:

hi Comment ctermfg = blue

其中,blue 为蓝色,也可以修改成其他颜色。

2.2 配置 snippets

所有编程语言相关的 snippet 文件都在下面这个目录里:

~/.vim/bundle/snipmate.vim/snippets/

可以根据相应格式进行增删改。

需要用到的变量可以在 ~/.vimrc 进行设置。比如:

" Snippets variables
let g:snips_author = 'Your Name'
let g:snips_email = 'Your Email'
set rtp+=~/.vim/bundle/snipmate.vim/snippets/''"

注意,需要设置 rtp 变量,有点类似于 Shell 中的环境变量。

vim's People

Contributors

cuckootan avatar lotusnowshen avatar

Watchers

 avatar  avatar

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.