Skip to content

Instantly share code, notes, and snippets.

@kisst
Created April 29, 2019 18:58
Show Gist options
  • Save kisst/ab880399682c98944d61056cd169dcf9 to your computer and use it in GitHub Desktop.
Save kisst/ab880399682c98944d61056cd169dcf9 to your computer and use it in GitHub Desktop.
neovim
" Start
""" --------------
set bs=2 mouse=a shortmess=atI
set autoread autoindent number ruler hidden autochdir cursorline
set smartindent incsearch nowrapscan ignorecase smartcase
set fdm=marker
syntax on
syntax enable
filetype plugin indent on
hi CursorLine cterm=NONE ctermbg=darkred ctermfg=white
hi CursorColumn cterm=NONE ctermbg=darkred ctermfg=white
""" -------------
" Save swp files to tmp
set directory=/tmp//
" Alias for sudo save
cmap w!! w !sudo tee %
" F5 to clear white spaces
nnoremap <silent> <F5> :let _s=@/ <Bar> :%s/\s\+$//e <Bar> :let @/=_s <Bar> :nohl <Bar> :unlet _s <CR>
" Plugings
call plug#begin()
" Auto complete
Plug 'roxma/nvim-completion-manager'
" Handy file browser
Plug 'scrooloose/nerdtree'
" Respect per repo conding style
Plug 'editorconfig/editorconfig-vim'
" Fancy statusbar
Plug 'itchyny/lightline.vim'
" Fancy colors
Plug 'flazz/vim-colorschemes'
" Syntax checking
Plug 'w0rp/ale'
" Git integration
Plug 'airblade/vim-gitgutter'
" Silversearch AG
Plug 'rking/ag.vim'
" Simple Edit only
Plug 'junegunn/goyo.vim'
" YAML fold
Plug 'pedrohdz/vim-yaml-folds'
call plug#end()
" My prefered colors
set background = "dark"
" Call the theme lucius
colorscheme lucius
" Don't forget set the airline theme as well.
let g:airline_theme = 'lucius'
" Start up NERDTree by default
autocmd VimEnter * NERDTree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment