diff options
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -61,6 +61,11 @@ set comments= " Give me a prompt instead of just rejecting risky :write, :saveas set confirm +" Only turn on 'cursorline' if my colorscheme loaded +if exists('g:colors_name') && g:colors_name ==# 'sahara' + set cursorline +endif + " Try to keep swapfiles in one system-appropriate dir set directory^=~/.vim/cache/swap//,~/vimfiles/cache/swap// @@ -256,9 +261,9 @@ nnoremap <Bslash>j :<C-U>buffers<CR>:buffer<Space> nnoremap <Bslash>k :<C-U>marks<CR> " \l toggles showing tab, end-of-line, and trailing whitespace nnoremap <Bslash>l :<C-U>setlocal list! list?<CR> -" \m shows all maps +" \m shows normal maps nnoremap <Bslash>m :<C-U>map<CR> -" \M shows buffer-local maps +" \M shows buffer-local normal maps nnoremap <Bslash>M :<C-U>map <buffer><CR> " \n toggles line numbers nnoremap <Bslash>n :<C-U>setlocal number! number?<CR> @@ -324,11 +329,11 @@ nnoremap <Bslash><Insert> :<C-U>enew<CR> " Execution mappings; each of these clobbers register z " \@ executes line in normal mode -nnoremap <Bslash>@ g^"zyg_@z +nnoremap <Bslash>@ ^"zyg_@z " \: executes line in command mode -nnoremap <Bslash>: g^"zyg_:<C-R>z<CR> +nnoremap <Bslash>: ^"zyg_:<C-R>z<CR> " \! executes line with 'shell' -nnoremap <Bslash>! g^"zyg_:!<C-R>z<CR> +nnoremap <Bslash>! ^"zyg_:!<C-R>z<CR> " If we're running NeoVim, source some extra configuration if has('nvim') |