A ready to use minimal Vim (Sublime Text -like) .vimrc configuration
( Play Video )
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 folderctrl
+f
- Find text in the documentctrl
+z
- Cancelctrl
+y
- RedoF1
- Snippets
Selection - after (esc
+ v
) or (⇧
+ v
)
ctrl
+c
- Copyctrl
+x
- Cutctrl
+p
- Pastectrl
+m
- Comment / Decommentctrl
+w
+<tag>
-<tag>
Wrap text</tag>
⇥ Tab
- Indent text⇥ Tab
+⇧
- Indent text
Tabs
ctrl
+t
- New tabctrl
+k
- Close tabctrl
+b
- Previous tabctrl
+n
- Next tab
Install Vundle
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
Install vim-sublime .vimrc
curl https://raw.github.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
Luigi Maselli - http://grigio.org
If You use Macvim see also subvim, another Sublime Text for VIM project