Skip to content

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

Notifications You must be signed in to change notification settings

alexstep/vim-sublime

This branch is 9 commits ahead of grigio/vim-sublime:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a17ea42 · Dec 24, 2019

History

46 Commits
Jun 29, 2018
Jun 29, 2018
Nov 29, 2013
Nov 28, 2013
Nov 28, 2013
Nov 28, 2013
Dec 24, 2019

Repository files navigation

Vim sublime

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

(Play Video)

Quick install

Run this script

curl https://raw.githubusercontent.com/alexstep/vim-sublime/master/install.sh | sh

or paste in console:

apt-get install vim -y

git clone --depth=1 https://github.com/VundleVim/Vundle.vim.git $HOME/.vim/bundle/Vundle.vim && \
curl https://raw.githubusercontent.com/alexstep/vim-sublime/master/vimrc > $HOME/.vimrc && \
cd ~/.vim/ && git clone https://github.com/flazz/vim-colorschemes && \
mv vim-colorschemes/colors ./ && rm -rf vim-colorschemes && \
vim -c "PluginInstall"

Step-by-step Installation

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

Install Vundle

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

Install vim-sublime .vimrc

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

Add the plugin colors

$ cd

$ git clone https://github.com/flazz/vim-colorschemes

$ mv vim-colorschemes/colors/ .vim

$ rm -rf vim-colorschemes

Then open vim and run :PluginInstall

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.

Features included and Shortcuts

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 (Shift+ 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 + Shift - Reindent text

An alternative way to comment is Ctrl + v (Visual-block mode) then Shift+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

Author

Luigi Maselli - http://grigio.org

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 90.4%
  • Shell 9.6%