Skip to content

Instantly share code, notes, and snippets.

@roycyt
Last active February 12, 2020 05:49
Show Gist options
  • Save roycyt/0a88251c64b31c8510b9b4a03362a8c4 to your computer and use it in GitHub Desktop.
Save roycyt/0a88251c64b31c8510b9b4a03362a8c4 to your computer and use it in GitHub Desktop.
vimrc
unlet! skip_defaults_vim
source $VIMRUNTIME/defaults.vim
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
" Color scheme
Plug 'Lokaltog/vim-monotone'
Plug 'vim-airline/vim-airline'
" Status line
Plug 'vim-airline/vim-airline-themes'
call plug#end()
set background=dark
set hidden
set nobackup
set termguicolors
" t_Co: number of colors
if &t_Co > 2 || has("gui_running")
" Switch on highlighting the last used search pattern.
set hlsearch
endif
syntax on
colorscheme monotone
" Airline
let g:airline#extensions#tabline#enabled = 1
"let g:airline_powerline_fonts = 1
" Key mappings
let mapleader = ','
nnoremap ; :
inoremap jj <ESC>
" Quickfix
map <C-n> :cnext<CR>
map <C-p> :cprevious<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment