Giter Club home page Giter Club logo

vim's Introduction

vim配置

简介

该代码是一份vim的配置脚本, 遵循以下思路去配置:

  1. 尽可能不改变vim原生快捷键和配置
  2. 尽可能精简插件,只保留当前github最热最实用插件
  3. 插件的快捷键尽可能不使用vim原有快捷键,防止覆盖vim原有功能

效果图

完整界面

  • 左侧为目录树,按F2打开
  • 右侧为符号列表, 按F9打开
  • 顶上为打开buffer列表,默认打开,为airline功能,可修改配置关闭
  • 底下为状态栏,使用了airline插件的经典状态栏

文件搜索功能

按ctrl+p 进入文件搜索功能,由当前最热门的fzf提供搜索支持

除了ctrl+p以外,还有如下搜索快捷键提供各种类型搜索:

nnoremap <c-n>f :FZF<CR>
nnoremap <c-n>g :GFiles?<CR>
nnoremap <c-n>b :Buffers<CR>
nnoremap <c-n>l :BLines<CR>
nnoremap <c-n>t :BTags<CR>
nnoremap <c-n>m :Marks<CR>
nnoremap <c-n>h :History<CR>
nnoremap <c-n>k :History:<CR>
nnoremap <c-n>/ :History/<CR>
nnoremap <c-n>c :Commands<CR>

代码搜索功能

  • 普通模式按F8跳出搜索代码命令,输入待搜索单词进行搜索
  • 或visual模式下按F8搜索当前选择单词,
  • 使用ctrlsf插件提供搜索功能,搜索结果可编辑保存

安装

vim 编译配置参考

./configure --with-features=huge \
            --enable-multibyte \
            --enable-rubyinterp=yes \
            --enable-perlinterp=yes \
            --enable-luainterp=yes \
            --with-lua-prefix=/usr/ \
            --enable-cscope \
            --prefix=/usr/local/bin/vim \
            --enable-python3interp=yes \
            --with-python3-command=python3

vim's People

Contributors

xu-chaojie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.