dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone git://edryd.org/dotfiles
Log | Files | Refs

commit 72e56707fda1f848b5e880e0cba6ce8031d75ec1
parent 0caa856ac63b142344e9cc49bbde1172a0ab2405
Author: Ed van Bruggen <edvb54@gmail.com>
Date:   Thu, 17 Sep 2015 16:54:33 -0700

Merge branch 'master' of https://github.com/edvb54/dotfiles

Diffstat:
nvimrc | 43++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 42 insertions(+), 1 deletion(-)

diff --git a/nvimrc b/nvimrc @@ -37,7 +37,7 @@ set wildmode=list,longest,full " make line numbers go 1,2,3,4... set number " make the line your cursor is on 0 -set relativenumber +" set relativenumber " extra chars like the end of line one and when text raps to next line set list @@ -54,6 +54,23 @@ if has("autocmd") au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif endif +" highlighting{{{1 +" highlight the 81st column so you know when your line is to long +call matchadd('Error', '\%81v', 100) + +au BufRead,BufNewFile *.md set filetype=markdown +au BufRead,BufNewFile *bash_profile* set filetype=sh +au BufRead,BufNewFile *tmux.conf* set filetype=sh +au BufRead,BufNewFile *conkyrc* set filetype=sh +au BufRead,BufNewFile *gitconfig* set filetype=gitconfig + +" spell check +hi SpellBad ctermfg=red cterm=underline +if version >= 700 + set spl=en spell + set nospell +endif + " mapping{{{1 " make jj typed quickly while in insert mode switch to normal mode :D inoremap jj <Esc> @@ -79,3 +96,27 @@ nnoremap <C-L> :bnext<CR> nnoremap <C-J> <C-D> nnoremap <C-K> <C-U> +" pair completion +inoremap { {}<Left> +inoremap {<CR> {<CR>}<Esc>O +inoremap {<Space> {<Space><Space>}<Left><Left> +inoremap {{ { +inoremap {} {} + +inoremap ( ()<Left> +inoremap (<CR> (<CR>)<Esc>O +inoremap (<Space> (<Space><Space>)<Left><Left> +inoremap (( ( +inoremap () () + +inoremap [ []<Left> +inoremap [<CR> [<CR>]<Esc>O +inoremap [<Space> [<Space><Space>]<Left><Left> +inoremap [[ [ +inoremap [] [] + +inoremap <> <><Left> +inoremap "" ""<Left> +inoremap '' ''<Left> +inoremap `` ``<Left> +