Mercurial > dotfiles.old
diff vimrc @ 27:d75ec1f32cae
Add folds to vimrc
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 30 Mar 2014 22:57:22 +0200 |
parents | 0bf5f68cf4f9 |
children | e7be1e1656d1 |
line wrap: on
line diff
--- a/vimrc Fri Mar 28 11:47:49 2014 +0100 +++ b/vimrc Sun Mar 30 22:57:22 2014 +0200 @@ -1,3 +1,6 @@ +" vim:fdm=marker + +" General Settings {{{ set nocompatible set laststatus=2 set noshowmode @@ -71,7 +74,8 @@ set clipboard=unnamed set viminfo='10,\"100,:20,%,n~/.viminfo - +" }}} +" Custom remaps and tricks {{{ " When editing a file, always jump to the last known cursor position. " Don't do it for commit messages, when the position is invalid, or when " inside an event handler (happens when dropping a file on gvim). @@ -108,9 +112,6 @@ " nnoremap <SPACE> <C-e> -" Close Quickfix window (,qq) -" map <leader>qq :cclose<CR> - nnoremap <silent> n n:call HLNext(0.4)<cr> nnoremap <silent> N N:call HLNext(0.4)<cr> @@ -158,6 +159,8 @@ " exec "set listchars=tab:\uBB\uBB,trail:\uB7,nbsp:~" " set list +" }}} +" Plugin Settings {{{ " Vim Math plugin; make simple calculations vmap <expr> ++ VMATH_YankAndAnalyse() nmap ++ vip++ @@ -242,6 +245,13 @@ \ 'vimshell' : $HOME.'/.vimshell_hist', \ 'scheme' : $HOME.'/.gosh_completions' \ } + +" Define keyword. +if !exists('g:neocomplete#keyword_patterns') + let g:neocomplete#keyword_patterns = {} +endif + +let g:neocomplete#keyword_patterns['default'] = '\h\w*' " Recommended key-mappings. " <CR>: close popup and save indent. inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR> @@ -372,12 +382,12 @@ xmap <C-l> <Plug>(textmanip-move-right) xmap <F10> <Plug>(textmanip-toggle-mode) +let g:startify_session_dir = "~/.vim/sessions" +" }}} + " Load local vimrc if filereadable($HOME . "/.vimrc.local") source ~/.vimrc.local endif nnoremap <Enter> o<ESC> - - -let g:startify_session_dir = "~/.vim/sessions"