1 Star 0 Fork 0

NingerJohn / vim-sublime

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Vim sublime

A ready to use minimal Vim (Sublime Text -like) .vimrc configuration

( Play Video )

Features included and Shortcuts

vim-sublime includes Vundle package manager and some external plugins.

The shortcuts should work in vim (terminal with 256 colors) on Linux, Mac OS X and Windows (I'm joking, I don't know).

Everywhere

  • ctrl + p - Open other files in the folder
  • ctrl + f - Find text in the document
  • ctrl + z - Cancel
  • ctrl + y - Redo
  • F1 - Snippets

Selection - after (esc + v) or (+ v)

  • ctrl + c - Copy
  • ctrl + x - Cut
  • ctrl + v - Paste
  • ctrl + m - Comment / Decomment
  • ctrl + w + <tag> - <tag>Wrap text</tag>
  • ⇥ Tab - Indent text
  • ⇥ Tab + - Indent text

An alternative way to comment is ctrl + v (Visual-block mode) then ⇧I add the commenting characters (es. //) and press esc.

To decomment, ctrl + v, select the part you want to delete at the beginning of the line and press d.

Tabs

  • ctrl + t - New tab
  • ctrl + k - Close tab
  • ctrl + b - Previous tab
  • ctrl + n - Next tab

Installation

Install Vundle

git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

Install vim-sublime .vimrc

curl https://raw.githubusercontent.com/grigio/vim-sublime/master/vimrc > $HOME/.vimrc

Then open vim and run

:BundleInstall

(Don't worry about the 'Monokai' error), quit and enter in vim again to apply the changes

You can also add machine specific config to ~/.local.vim

For best results make sure your $TERM env variable is 256 colours; export TERM=xterm-256color

Note: to have the correct font in the bottom bar you need a Powerline font installed and selected in the terminal.

Author

Luigi Maselli - http://grigio.org

If You use Macvim see also subvim, another Sublime Text for VIM project

空文件

简介

A ready to use minimal Vim (Sublime Text -like) .vimrc configuration 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
VimL
1
https://gitee.com/ningerjohn/vim-sublime.git
git@gitee.com:ningerjohn/vim-sublime.git
ningerjohn
vim-sublime
vim-sublime
master

搜索帮助