Giter Club home page Giter Club logo

kai-vimrc's Introduction

kai-vimrc

这个脚本是配置vim的配置文件,当然前提是安装了vim。

写这个脚本的目的:

  • 学习git的使用,学会如何有效的管理代码;
  • 学习github的使用,包括面板中各个功能;
  • 学习vimscript脚本语言;
  • 配置适合自己的vim编辑环境.

vim-powerline

  • 配置
    在vimrc中增加如下配置:

    " set powerline
    set laststatus=2	        " use 2 lines for the status bar
    
  • 效果
    vim-powerline-newfile

kai-vimrc's People

Contributors

gnsyxiang avatar

Watchers

 avatar  avatar  avatar

kai-vimrc's Issues

如何灵活设定vundle下载插件的目录

  • 问题
    如何改变vundle默认的插件下载目录?

  • 定位
    vundle的默认下载目录是$HOME/.vim/bundle,在vundle.vim文件中设定,如下:

    " Initialize some global variables used by Vundle.
    let vundle#bundle_dir = expand('$HOME/.vim/bundle', 1)
    let vundle#bundles = []
    let vundle#lazy_load = 0
    let vundle#log = []
    let vundle#updated_bundles = []
    
  • 如何解决
    思路:获取当前文件的路径,然后通过字符串运算来设定相对灵活的路径。
    困难:不知道选取什么样的字符串函数才能达到预定效果。

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.