Created
March 17, 2018 18:00
-
-
Save bfagundez/30bde987b2b655c4498b51251f0d8562 to your computer and use it in GitHub Desktop.
nvim config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim Plug (this has to be the first thing on the init.vim) | |
call plug#begin() | |
Plug 'tpope/vim-sensible' | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'junegunn/vim-github-dashboard' | |
Plug 'cloudhead/neovim-fuzzy' | |
Plug 'tpope/vim-fugitive' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'bling/vim-airline' | |
Plug 'numkil/ag.vim' | |
Plug 'scrooloose/syntastic' | |
Plug 'morhetz/gruvbox' | |
Plug 'flazz/vim-colorschemes' | |
Plug 'vim-airline/vim-airline-themes' | |
call plug#end() | |
" final settings for color scheme | |
set background=dark | |
colorscheme onedark | |
let g:airline_theme="papercolor" | |
let mapleader=" " | |
map <Leader>n <plug>NERDTreeTabsToggle<CR> | |
map <C-S-f> :Ag<space> | |
" Other conf | |
set termguicolors | |
set showcmd | |
set autoindent " set auto indent | |
set ts=2 " set indent to 2 spaces | |
set expandtab " use spaces, not tab characters | |
set showmatch " show bracket matches | |
set ignorecase " ignore case in search | |
set hlsearch " highlight all search matches | |
set cursorline " highlight current line | |
set smartcase " pay attention to case when caps are used | |
set incsearch " show search results as I type | |
set mouse=a " enable mouse support | |
set vb " enable visual bell (disable audio bell) | |
set ruler " show row and column in footer | |
set laststatus=2 " always show status bar | |
set list listchars=tab:»·,trail:· " show extra space characters | |
set nofoldenable " disable code folding | |
"set clipboard=unnamed " use the system clipboard | |
" airline | |
let g:airline_powerline_fonts = 1 | |
set shiftwidth=2 softtabstop=2 | |
set number | |
" syntax general settings | |
syntax on | |
syntax enable | |
" fuzzy search | |
nnoremap <C-p> :FuzzyOpen<CR> | |
" indent guides | |
let g:indentLine_enabled = 1 | |
let g:indentLine_color_term = 254 | |
let g:indentLine_char = '┆' | |
" Mouse Support | |
if has('mouse') | |
set mouse=a | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment