Skip to content

Latest commit

 

History

History
80 lines (50 loc) · 2.36 KB

README.md

File metadata and controls

80 lines (50 loc) · 2.36 KB

Config for Vim, GVim and etc.

This one contains the following additions:

vim-plug
nerdtree
YouCompleteMe
auto-pairs
vim-gitgutter
vim-fugitive
ctrlp.vim
vim-ruby
emmet-vim
gruvbox (colorschemes)

Settings:

colorscheme gruvbox

set background=dark

set number

set hlsearch

set incsearch

syntax on

Quick setup (using Ubuntu 16.04 and later):

Download / copy the .vimrc file to your home directory

Run the following command in the terminal to install the plugin manager:

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

More info about the plugin manager vim-plug

Run vim, execute:

:PlugUpdate
:PlugInstall

You can also use the command:

:source ~/.vimrc

Error in vim:

YCM core library not de...you need to compile YCM before using it. Follow the instructions in the documentation

Run a command in the terminal:

sudo apt install build-essential cmake python3-dev
sudo apt-get install python-dev python3-dev

Compiling YCM without semantic support for C-family languages: (:exclamation: Notice! Compilation may take a long time :exclamation:)

cd ~/.vim/plugged/YouCompleteMe
python3 install.py

More info about YouCompleteMe

If you need a Vim editor for MC (midnight commander), then type in the terminal:

select-editor

Select a number and press enter:

Select an editor. To change later, run 'select-editor'.

  1. /bin/nano <---- easiest
  2. /usr/bin/vim.basic
  3. /usr/bin/mcedit
  4. /usr/bin/vim.tiny
  5. /bin/ed

Choose 1-5 [1]: 2