No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
autoload
bundle
colors
syntax
.gitmodules
.vimrc
README.md

README.md

What is

Everyone has already thought about starting to use vim, but when start looking on web you see a lot of things and confusing tutorials, this repository contains my vim setup and a easy tutorial to follow and start using vim today :)

HOW TO USE IT

First of all, you need to install vim in your computer.

Install vim/gvim

Linux based systems

I pretty recommend vim-gnome that you can easy install running this:

sudo apt-get update

sudo apt-get install vim-gnome

But you have many other options like these below:

If you want, you can check the difference between each other here

MAC

You can download macvim here

Windows

Download vim for windows here

Installing this vimfiles

All that you need to do is clone this repository into yout home directory either as .vim (linux/mac) or vim files (Windows).

git clone git@github.com:OtavioHenrique/vimfiles.git

Now you should create a new .vimrc file in your home directory that loads the pre-configured one that comes bundled in this package. You can do it on Linux/Mac like this:

echo "source ~/.vim/.vimrc" > ~/.vimrc

On Windows you should create a _vimrc (underline instead of dot) and add the following line inside:

source ~/vimfiles/vimrc

This way you can override the default configuration by adding your own inside this file.

You should also create a new .gvimrc file in your home directory. You can do it on Linux/Mac like this:

echo "source ~/.vim/.vimrc" > ~/.gvimrc

On Windows you should create a _gvimrc (underline instead of dot) and add the following line inside:

source ~/vimfiles/gvimrc

This way you can override the default GUI configuration by adding your own inside this file.

And after this, you may run the following line, to start git submodules (Plugins):

git submodule update --init --recursive

Clipboard

Getting Vim to work with the X11 clipboard can be a struggle if you want to run Vim in a terminal. In this case, you will have to check for X11 clipboard support. The GUI version of Vim always has clipboard support.

From the console, type:

vim --version | grep clipboard If you see +clipboard or +xterm_clipboard, you are good to go. If it's -clipboard and -xterm_clipboard, you will need to look for a version of Vim that was compiled with clipboard support. On Debian and Ubuntu, to obtain clipboard support install the packages vim-gtk or vim-gnome (not vim-tiny). retired from vim wiki

So, if you want clipboard working inside vim with external clipboard you just need to install gvim and with that .vimrc everything will work fine.

Plugins

I recommend that you enter in each repository and read the documentation to learn more about how to use it :)

Contact

Follow me on Twitter

Credits

Fabio Akita with the original/complete repository of this project - https://github.com/akitaonrails/vimfiles