Skip to content

Instantly share code, notes, and snippets.

@Althorion
Created November 14, 2017 18:53
Show Gist options
  • Save Althorion/ba73ce3553d02201fdcfc5134d0e03dc to your computer and use it in GitHub Desktop.
Save Althorion/ba73ce3553d02201fdcfc5134d0e03dc to your computer and use it in GitHub Desktop.
" vim-plug
call plug#begin('~/.nvim/plugged')
Plug 'iCyMind/NeoSolarized'
Plug 'arakashic/chromatica.nvim', {'for': ['c', 'cpp']}
Plug 'tpope/vim-fugitive'
Plug 'neomake/neomake'
" Plug 'vim-syntastic/syntastic'
Plug 'donRaphaco/neotex', {'for': 'tex'}
Plug 'c0r73x/neotags.nvim', {'for': ['c', 'cpp']}
Plug 'roxma/ncm-clang'
Plug 'roxma/nvim-completion-manager'
Plug 'rust-lang/rust.vim', {'for': 'rust'}
Plug 'racer-rust/vim-racer', {'for': 'rust'}
Plug 'roxma/nvim-cm-racer', {'for': 'rust'}
Plug 'Shougo/neco-syntax'
Plug 'Shougo/neoinclude.vim'
Plug 'tpope/vim-sleuth'
Plug 'vim-pandoc/vim-pandoc', {'for': 'markdown'}
Plug 'vim-pandoc/vim-pandoc-syntax', {'for': 'markdown'}
Plug 'airblade/vim-gitgutter'
" Plug 'vim-airline/vim-airline'
Plug 'scrooloose/nerdcommenter'
function! BuildComposer(info)
if a:info.status != 'unchanged' || a:info.force
if has('nvim')
!cargo build --release
else
!cargo build --release --no-default-features --features json-rpc
endif
endif
endfunction
Plug 'euclio/vim-markdown-composer', { 'do': function('BuildComposer') }
call plug#end()
" chromatica
let g:chromatica#enable_at_startup=1
let g:chromatica#highlight_feature_level=1
" neotags.vim
set regexpengine=1
" vim-racer
set hidden
let g:racer_cmd = "/home/althorion/.cargo/bin/racer"
let g:racer_experimental_completer = 1
" Syntastic
" let g:syntastic_always_populate_loc_list = 1
" let g:syntastic_auto_loc_list = 1
" let g:syntastic_check_on_open = 1
" let g:syntastic_check_on_wq = 0
" NeoMake
call neomake#configure#automake('nw', 1000)
" rust.vim
let g:rustfmt_autosave = 1
" vim-airline
let g:airline_powerline_fonts = 1
" NERDcommenter
let g:NERDSpaceDelims = 1
let g:NERDCompactSexyComs = 1
let g:NERDTrimTrailingWhitespace = 1
" Basic options
scriptencoding utf-8
set history=1024
filetype plugin indent on
syntax on
set mouse=a
set mousehide
set autoread
let mapleader = ","
let g:mapleader = ","
set clipboard=unnamedplus
command W w !sudo tee % > /dev/null
set relativenumber
set number
set showmatch
set incsearch
set hlsearch
set smartcase
set wildmenu
set wildmode=list:longest,full
set scrolljump=5
set scrolloff=5
set nowrap
set autoindent
set shiftwidth=4
set tabstop=4
set softtabstop=4
set nojoinspaces
set smartindent
set cindent
" Look'n'feel
set termguicolors
colorscheme NeoSolarized
set background=dark
let g:neosolarized_bold = 1
let g:neosolarized_underline = 1
let g:neosolarized_italic = 1
set showmode
set cursorline
if has('cmdline_info')
set ruler
set rulerformat=%30(%=\:b%n%y%m%r%w\ %l,%c%V\ %P%)
set showcmd
endif
if has('statusline')
set laststatus=2
set statusline=%<%f\ " Filename
set statusline+=%w%h%m%r " Options
set statusline+=%{fugitive#statusline()} " Git Hotness
set statusline+=\ [%{&ff}/%Y] " Filetype
set statusline+=\ [%{getcwd()}] " Current dir
set statusline+=%#warningmsg#
" set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
set statusline+=%=%-14.(%l,%c%V%)\ %p%% " Right aligned file nav info
endif
set backspace=indent,eol,start
set list
set listchars=tab:›\ ,trail:•,extends:#,nbsp:.
set lazyredraw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment