Skip to content

Instantly share code, notes, and snippets.

@paridin
Last active February 16, 2017 16:41
Show Gist options
  • Save paridin/217c8f4d9d473699ea6329b191564cf1 to your computer and use it in GitHub Desktop.
Save paridin/217c8f4d9d473699ea6329b191564cf1 to your computer and use it in GitHub Desktop.
An light configuration of vim. Great for work in a remote servers.

This version of .vimrc is lightweight and powerful to work in a remote environment as private servers without access to the internet.

Requirements

  • Vundle (git is required)
  • vim-airline (With themes)
  • ctrlp

You must download the projects from their github accounts.

vim-plug vim-airline vim-airline-themes ctrlp !updated repo

In your server you must keep the following structure

ls ~/.vim/*

$HOME/.vim/autoload:
plug.vim

$HOME/.vim/bundle:
ctrlp.vim  vim-airline  vim-airline-themes

$HOME/.vim/colors:
lucario.vim  vice.vim

$HOME/.vim/plugged:

You must consider the following file to get all working.

syntax on
colorscheme lucario
set t_Co=256
set tabstop=8 softtabstop=0 expandtab shiftwidth=2 smarttab

"if has('gui_running')
set guifont=Terminus:h12
"endif

call plug#begin('~/.vim/bundle')

 Plug 'ctrlpvim/ctrlp.vim'
 Plug 'bling/vim-airline'
 Plug 'vim-airline/vim-airline-themes'

call plug#end()

" airline
let g:airline_theme='bubblegum'
set laststatus=2
let g:airline_section_b = '%{strftime("%c")}'
" let g:airline_section_y = 'BN: %{bufnr("%")}'
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#left_sep = ' '
let g:airline#extensions#tabline#left_alt_sep = '|'

" ctrp
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'

Notes

If you don't have ftp access and you want install using copy & paste the plug.vim you should be careful with the encode, be sure the encode is utf8

Hints

If you have FTP or SFTP access you should create the structure in your local enviroment compress and uncompress in your server keeping the structure above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment