diff options
author | shmibs <shmibs@gmail.com> | 2014-05-28 08:49:01 -0700 |
---|---|---|
committer | shmibs <shmibs@gmail.com> | 2014-05-28 08:49:01 -0700 |
commit | 4ffad3ac6c5259b975650cf1aeaaecb1fd255be3 (patch) | |
tree | fd37665dad2eca4484f0978e6cf6750dea0cd348 /.vimrc | |
parent | f1ca9695d1d00955003af3c44b5aac5fbcce970b (diff) | |
download | dotfiles-4ffad3ac6c5259b975650cf1aeaaecb1fd255be3.tar.gz |
updated calc
ans can now be used to refer to the previous answer value in a
calculation
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 25 |
1 files changed, 14 insertions, 11 deletions
@@ -7,20 +7,23 @@ set autoindent colorscheme anotherdark set background=dark -"tab controls to match pentadactyl -noremap <C-n> <Esc>:tabn<CR> -noremap <C-p> <Esc>:tabp<CR> -noremap <C-t> <Esc>:tabnew<CR> +"enable status-line +set laststatus=2 + +"allow edited background buffers +set hidden + +"buffer controls to match pentadactyl +noremap <C-n> <Esc>:bn<CR> +noremap <C-p> <Esc>:bp<CR> +noremap <C-t> <Esc>:badd<Space> +noremap <C-g> <Esc>:buffers<CR>:b<Space> "insert lines above and below with (=|+) "very hackish, but i couldn't think of a better way nnoremap = Oa<C-u><Esc>j nnoremap + oa<C-u><Esc>k -"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 <expr> <c-y> pumvisible() ? "\<c-y>" : matchstr(getline(line('.')-1), '\%' . virtcol('.') . 'v\%(\k\+\\|.\)') -inoremap <expr> <c-e> pumvisible() ? "\<c-e>" : matchstr(getline(line('.')+1), '\%' . virtcol('.') . 'v\%(\k\+\\|.\)') +inoremap <expr> <C-y> pumvisible() ? "\<C-y>" : matchstr(getline(line('.')-1), '\%' . virtcol('.') . 'v\%(\k\+\\|.\)') +inoremap <expr> <C-e> pumvisible() ? "\<C-e>" : 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<Space>"<Space> + noremap -- A<Space>" endfunction |