From 4ffad3ac6c5259b975650cf1aeaaecb1fd255be3 Mon Sep 17 00:00:00 2001 From: shmibs Date: Wed, 28 May 2014 08:49:01 -0700 Subject: updated calc ans can now be used to refer to the previous answer value in a calculation --- .vimrc | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 2ff0919..a571715 100644 --- a/.vimrc +++ b/.vimrc @@ -7,20 +7,23 @@ set autoindent colorscheme anotherdark set background=dark -"tab controls to match pentadactyl -noremap :tabn -noremap :tabp -noremap :tabnew +"enable status-line +set laststatus=2 + +"allow edited background buffers +set hidden + +"buffer controls to match pentadactyl +noremap :bn +noremap :bp +noremap :badd +noremap :buffers:b "insert lines above and below with (=|+) "very hackish, but i couldn't think of a better way nnoremap = Oaj nnoremap + oak -"disable auto session save/load -let g:session_autosave = 'no' -let g:session_autoload = 'no' - "folds! nnoremap fo zO nnoremap fc zC @@ -28,8 +31,8 @@ nnoremap fm zM nnoremap fr zR "copy words from above and below the cursor -inoremap pumvisible() ? "\" : matchstr(getline(line('.')-1), '\%' . virtcol('.') . 'v\%(\k\+\\|.\)') -inoremap pumvisible() ? "\" : matchstr(getline(line('.')+1), '\%' . virtcol('.') . 'v\%(\k\+\\|.\)') +inoremap pumvisible() ? "\" : matchstr(getline(line('.')-1), '\%' . virtcol('.') . 'v\%(\k\+\\|.\)') +inoremap pumvisible() ? "\" : matchstr(getline(line('.')+1), '\%' . virtcol('.') . 'v\%(\k\+\\|.\)') "use the X clipboard for things when running in a virtual terminal, because yes if &term != "linux" @@ -90,5 +93,5 @@ endfunction function! Settings_vim() setlocal smartindent - noremap -- A" + noremap -- A" endfunction -- cgit v1.2.3