Created
August 12, 2014 21:01
-
-
Save tauli/c4be61642b4e1ee613f7 to your computer and use it in GitHub Desktop.
nvim setup
This file contains 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
Plugins | |
======= | |
Pathogen https://github.com/tpope/vim-pathogen | |
ghcmod-vim https://github.com/eagletmt/ghcmod-vim.git | |
haskell-vim https://github.com/raichoo/haskell-vim.git | |
neco-ghc https://github.com/eagletmt/neco-ghc.git | |
neocomplcache.vim https://github.com/Shougo/neocomplcache.vim.git | |
syntastic https://github.com/scrooloose/syntastic.git | |
vim-airline https://github.com/bling/vim-airline | |
vim-colors-solarized https://github.com/altercation/vim-colors-solarized.git | |
vimproc https://github.com/Shougo/vimproc.vim.git | |
.nvimrc | |
======= | |
filetype on | |
filetype plugin indent on | |
syntax on | |
set relativenumber | |
set autoindent | |
set smarttab | |
set shiftwidth=4 | |
set tabstop=4 | |
set expandtab | |
set nohlsearch | |
let maplocalleader="ö" | |
let mapleader="ä" | |
map ö <nop> | |
map ä <nop> | |
augroup vimrc_autocmds | |
autocmd BufEnter * highlight OverLength ctermbg=darkred guibg=#883333 | |
autocmd BufEnter * match OverLength /\%80v.*/ | |
augroup END | |
execute pathogen#infect() | |
" Solarized Config | |
:colorscheme solarized | |
set background=light | |
augroup CursorLine | |
au! | |
au VimEnter,WinEnter,BufWinEnter * setlocal cursorline | |
au VimEnter,WinEnter,BufWinEnter * setlocal cursorcolumn | |
au WinLeave * setlocal nocursorline | |
au WinLeave * setlocal nocursorcolumn | |
augroup END | |
" Syntastic Config | |
let g:syntastic_check_on_wq = 0 | |
let g:syntastic_mode_map = { 'mode': 'passive', | |
\ 'active_filetypes': [], | |
\ 'passive_filetypes': [] } | |
map ü :w<cr>:SyntasticCheck<cr> | |
map <Leader>ew :Errors<cr> | |
map <Leader>en :lnext<cr> | |
map <Leader>ep :lprev<cr> | |
let g:neocomplcache_enable_at_startup = 1 | |
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" | |
" VimCoq Config | |
nmap <silent> <Down> :CoqIDENext<CR> | |
imap <silent> <Down> <ESC>:CoqIDENext<CR>a | |
nmap <silent> <Up> :CoqIDEUndo<CR> | |
imap <silent> <Up> <ESC>:CoqIDEUndo<CR>a | |
nmap <silent> <Left> <nop> | |
imap <silent> <Left> <nop> | |
nmap <silent> <Right> :CoqIDEToCursor<CR> | |
imap <silent> <Right> <ESC>:CoqIDEToCursor<CR>a | |
" Airline Config | |
let g:airline_left_sep = ' ' | |
let g:airline_right_sep = ' ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment