aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
m---------vim/bundle/cursorline_current0
m---------vim/bundle/sahara0
-rw-r--r--vim/vimrc15
3 files changed, 10 insertions, 5 deletions
diff --git a/vim/bundle/cursorline_current b/vim/bundle/cursorline_current
new file mode 160000
+Subproject 70eb3eaaecfce486ce6df4a141d3d4d1bec30e0
diff --git a/vim/bundle/sahara b/vim/bundle/sahara
-Subproject 6818d1555a9d733f33f805e91b7147cdfddde04
+Subproject 5b24c60103d7ee056b88f1c0cc799d6479d75ec
diff --git a/vim/vimrc b/vim/vimrc
index 445e0bbb..6b181fa7 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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')