Skip to content

Instantly share code, notes, and snippets.

@chmelevskij
Last active September 30, 2016 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chmelevskij/6e646d608f1451dd4a87b31286ac793c to your computer and use it in GitHub Desktop.
Save chmelevskij/6e646d608f1451dd4a87b31286ac793c to your computer and use it in GitHub Desktop.
" Created: Thu 2 Jun 2016 15:38:32 BST
" Vundle setup
syntax enable " Turn on syntax highlighting
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'ninja/sky'
Plugin 'mattn/emmet-vim'
Plugin 'scrooloose/nerdtree'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" Rest of the settings
colorscheme sky
set fillchars=vert:\|
let g:airline_theme='sky'
let g:airline_powerline_fonts = 1
let g:airline_left_sep=''
let g:airline_right_sep=''
let g:airline#extensions#tabline#left_sep=''
let g:airline#extensions#tabline#left_alt_sep=''
filetype plugin on
" Use spaces of width 2 for html files.
au FileType html setlocal shiftwidth=2 tabstop=2 expandtab
set omnifunc=syntaxcomplete#Complete " vims built in autocompletion
set laststatus=2 " Enables statusline at the bottom of the screen.
set backspace=2 " Make backspace behave like all the other apps!
set wildmenu wildmode=longest:full,full " Enable menu in statusline opening with TAB
set history=100 " default is 8
set nobackup " disable backups
set noswapfile " disable swap files
set number " show absolute line number of current line
set rnu " show relative numbers
set mouse=a " enable mouse
set ttymouse=sgr " tmux + vim mouse
autocmd vimenter * NERDTree
" Shortcuts
map <F2> :NERDTreeToggle<CR>
map <F3> :source $MYVIMRC<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment