2015-12-29 20:00:48 +01:00
|
|
|
|
|
|
|
|
|
|
|
" General Options {{{
|
|
|
|
" =====================
|
|
|
|
let mapleader=';'
|
|
|
|
|
|
|
|
syntax enable
|
|
|
|
set background=dark
|
2015-12-30 00:52:38 +01:00
|
|
|
colorscheme darkblue
|
2015-12-29 20:00:48 +01:00
|
|
|
|
2016-03-25 09:52:33 +01:00
|
|
|
set mouse=n " fuck you, mouse
|
2015-12-29 20:00:48 +01:00
|
|
|
set number " line numbers on the right side
|
|
|
|
set showcmd " show the commands while typing
|
|
|
|
set splitright " open new splits on the right
|
|
|
|
set splitbelow " open new splits below
|
|
|
|
set autoread " autoreload file on change
|
|
|
|
set scrolloff=8 " keep the cursor 8 lines away from the top/bottom
|
|
|
|
set ruler " show the lines/% bottomright
|
|
|
|
"set encoding=utf-8 " set default encoding
|
|
|
|
set laststatus=2 " always show the status line
|
|
|
|
|
|
|
|
" wrap lines at 72 characters
|
|
|
|
"set formatprg=par\ -w72
|
|
|
|
set formatoptions=tcrqnlmj
|
|
|
|
set textwidth=72
|
|
|
|
|
|
|
|
" indentation
|
|
|
|
set tabstop=4 " tab is 4 width
|
|
|
|
set shiftwidth=4 " for use with > and <
|
|
|
|
set expandtab " tab key puts spaces
|
|
|
|
set list " show whitespace, configure below
|
|
|
|
set listchars=tab:·\ ,trail:·
|
|
|
|
" display tabs with a leading \cdot
|
|
|
|
" trailing whitespace looks like \cdot
|
|
|
|
|
2015-12-29 22:09:27 +01:00
|
|
|
" Movement keys
|
|
|
|
nnoremap <Up> <NOP>
|
|
|
|
nnoremap <Down> <NOP>
|
|
|
|
nnoremap <Left> <NOP>
|
|
|
|
nnoremap <Right> <NOP>
|
|
|
|
|
|
|
|
" Not too much folding
|
2015-12-29 20:00:48 +01:00
|
|
|
set foldlevelstart=2
|
2015-12-29 22:09:27 +01:00
|
|
|
|
|
|
|
" Hmmmm neovim terminals
|
|
|
|
nnoremap <Leader>s :vsplit +:terminal<CR>
|
|
|
|
tnoremap <Esc> <C-\><C-n>
|
|
|
|
|
2015-12-30 01:23:08 +01:00
|
|
|
" Quickfixing
|
|
|
|
nnoremap <Leader>co :copen<CR>
|
|
|
|
nnoremap <Leader>cn :cnext<CR>
|
|
|
|
nnoremap <Leader>cp :cprevious<CR>
|
|
|
|
|
2015-12-29 20:00:48 +01:00
|
|
|
" General Options }}}
|
|
|
|
|
|
|
|
" Plugins {{{
|
|
|
|
" =====================
|
|
|
|
|
|
|
|
" Plugged
|
|
|
|
" -------
|
|
|
|
call plug#begin('~/.config/nvim/plugged')
|
|
|
|
Plug 'ctrlpvim/ctrlp.vim'
|
|
|
|
Plug 'bling/vim-airline'
|
2016-01-20 19:31:08 +01:00
|
|
|
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
2015-12-29 20:00:48 +01:00
|
|
|
Plug 'junegunn/vim-easy-align'
|
|
|
|
Plug 'easymotion/vim-easymotion'
|
|
|
|
Plug 'tpope/vim-fugitive'
|
2016-01-20 19:31:08 +01:00
|
|
|
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
|
2015-12-29 20:00:48 +01:00
|
|
|
Plug 'Valloric/YouCompleteMe'
|
|
|
|
Plug 'chriskempson/base16-vim'
|
2016-01-20 19:31:08 +01:00
|
|
|
Plug 'LaTeX-Box-Team/LaTeX-Box', { 'for': 'tex' }
|
|
|
|
Plug 'chase/vim-ansible-yaml', { 'for': 'yaml' }
|
2015-12-30 00:52:38 +01:00
|
|
|
|
|
|
|
Plug 'junegunn/vim-peekaboo'
|
2016-01-20 19:31:08 +01:00
|
|
|
Plug 'mhinz/vim-grepper', { 'on': 'Grepper' }
|
2015-12-30 19:14:21 +01:00
|
|
|
Plug 'neovimhaskell/haskell-vim'
|
2016-01-20 19:31:08 +01:00
|
|
|
Plug 'kassio/neoterm', { 'on': 'T' }
|
|
|
|
|
2015-12-29 20:00:48 +01:00
|
|
|
call plug#end()
|
|
|
|
|
|
|
|
" Plugin configuration
|
|
|
|
" --------------------
|
|
|
|
let g:ctrlp_map='<Leader>l'
|
2016-01-20 19:31:08 +01:00
|
|
|
let g:ctrlp_user_command=['.git/', 'git --git-dir=%s/.git ls-files . -co --exclude-standard']
|
2015-12-29 20:00:48 +01:00
|
|
|
|
|
|
|
let g:airline_powerline_fonts=1
|
|
|
|
|
|
|
|
nnoremap <Leader>t :NERDTreeToggle<CR><CR>
|
|
|
|
let NERDTreeIgnore=[
|
|
|
|
\ ".*\\.class$",
|
|
|
|
\ ".*\\.o$",
|
|
|
|
\ ".*\\.hi$",
|
|
|
|
\ ".*\\.pyc$"
|
|
|
|
\ ]
|
|
|
|
|
|
|
|
xnoremap <Leader>a <Plug>(EasyAlign)
|
|
|
|
nmap <Leader>a <Plug>(EasyAlign)
|
|
|
|
|
|
|
|
let g:EasyMotion_do_mapping=0
|
2016-02-25 10:02:43 +01:00
|
|
|
let g:EasyMotion_startofline=0
|
|
|
|
map <Leader>w <Plug>(easymotion-bd-w)
|
2016-01-20 19:31:08 +01:00
|
|
|
map <Leader>f <Plug>(easymotion-s)
|
|
|
|
map <Leader>j <Plug>(easymotion-j)
|
|
|
|
map <Leader>k <Plug>(easymotion-k)
|
2016-02-25 10:02:43 +01:00
|
|
|
nmap <Leader>L <Plug>(easymotion-overwin-line)
|
|
|
|
nmap <Leader>w <Plug>(easymotion-overwin-w)
|
|
|
|
map / <Plug>(easymotion-sn)
|
|
|
|
omap / <Plug>(easymotion-tn)
|
|
|
|
map n <Plug>(easymotion-next)
|
|
|
|
map N <Plug>(easymotion-prev)
|
|
|
|
set nohlsearch
|
2015-12-29 20:00:48 +01:00
|
|
|
|
2015-12-30 01:23:08 +01:00
|
|
|
let g:ycm_global_ycm_extra_conf='~/.config/nvim/ycm_extra_conf.py'
|
2016-03-25 09:52:33 +01:00
|
|
|
let g:ycm_rust_src_path='/data/programming/rustc-1.7.0/src'
|
2016-01-20 19:31:08 +01:00
|
|
|
set completeopt=menu
|
2015-12-29 20:00:48 +01:00
|
|
|
|
|
|
|
let base16colorspace=256
|
2015-12-30 00:52:38 +01:00
|
|
|
colorscheme base16-colors
|
|
|
|
" damn base16's grey linenr background
|
|
|
|
highlight LineNr ctermfg=08 ctermbg=NONE
|
|
|
|
|
2015-12-30 01:23:08 +01:00
|
|
|
nnoremap <Leader>g :Grepper<CR>
|
2015-12-30 19:14:21 +01:00
|
|
|
|
|
|
|
let g:haskell_enable_quantification=1
|
|
|
|
let g:haskell_enable_recursivedo=1
|
|
|
|
let g:haskell_enable_arrowsyntax=1
|
|
|
|
let g:haskell_enable_pattern_synonyms=1
|
|
|
|
let g:haskell_enable_typeroles=1
|
|
|
|
let g:haskell_enable_static_pointers=1
|
2015-12-29 20:00:48 +01:00
|
|
|
" Plugged }}}
|
|
|
|
|
|
|
|
" vim: foldmethod=marker
|