Skip to content

Instantly share code, notes, and snippets.

@Nyubis
Last active January 9, 2018 07:37
Show Gist options
  • Select an option

  • Save Nyubis/658df58ac56d1d6f81033340bfbe7b4b to your computer and use it in GitHub Desktop.

Select an option

Save Nyubis/658df58ac56d1d6f81033340bfbe7b4b to your computer and use it in GitHub Desktop.
""Plugins
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'bling/vim-airline'
Plugin 'wting/rust.vim'
Plugin 'kien/ctrlp.vim'
call vundle#end()
let g:airline_powerline_fonts=1
set laststatus=2
"" General
set backspace=2
set showcmd
set number
set relativenumber
set t_Co=256
set mouse=a
set cursorline
syntax on
filetype plugin indent on
cmap w!! w !sudo tee % > /dev/null
"" Theme + fixes
colorscheme molokai
let g:molokai_original=1 "Better background color
let g:airline_theme='bubblegum'
let $NVIM_TUI_ENABLE_TRUE_COLOR=1 "(neovim only) use 2^24 colors instead of 256
hi SpecialKey gui=none
hi Special gui=none
"" Whitespace
set tabstop=4
set shiftwidth=4
set scrolloff=3 "Leave 3 lines of space below/above cursor when scrolling
set nowrap
"" Show invisible characters. ctermfg 0 should be a low-contrast colour
set list
set listchars=tab:→\ ,trail:·
hi SpecialKey ctermfg=0
"" Searching
set hlsearch
set incsearch
set ignorecase
set smartcase
"" Tab switching
nnoremap <F7> :tabprevious<CR>
nnoremap <F8> :tabnext<CR>
"" Keep backup files in one place instead of littering all over
set backupdir=~/.vim/.backup
set directory=~/.vim/.backup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment