projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dc1f43c
)
[vim] disable relativenumber
author
Amin Bandali
<me@aminb.org>
Thu, 28 May 2015 02:35:32 +0000
(22:35 -0400)
committer
Amin Bandali
<me@aminb.org>
Thu, 28 May 2015 02:35:32 +0000
(22:35 -0400)
(too distracting)
vim/.vimrc
patch
|
blob
|
blame
|
history
diff --git
a/vim/.vimrc
b/vim/.vimrc
index
58f3b17
..
f0c6919
100644
(file)
--- a/
vim/.vimrc
+++ b/
vim/.vimrc
@@
-104,10
+104,10
@@
set title
" Show the (partial) command as it’s being typed
set showcmd
" Use relative line numbers
" Show the (partial) command as it’s being typed
set showcmd
" Use relative line numbers
-if exists("&relativenumber")
- set relativenumber
- au BufReadPost * set relativenumber
-endif
+
"
if exists("&relativenumber")
+
"
set relativenumber
+
"
au BufReadPost * set relativenumber
+
"
endif
" Start scrolling three lines before the horizontal window border
set scrolloff=3
" Start scrolling three lines before the horizontal window border
set scrolloff=3
@@
-140,15
+140,6
@@
endif
vnoremap ; :
vnoremap : ;
vnoremap ; :
vnoremap : ;
-" relative line number stuff
-function! NumberToggle()
- if(&relativenumber == 1)
- set number
- else
- set relativenumber
- endif
-endfunc
-nnoremap <leader>n :call NumberToggle()<cr>
":au FocusLost * :set number
":au FocusGained * :set relativenumber
autocmd InsertEnter * :set number
":au FocusLost * :set number
":au FocusGained * :set relativenumber
autocmd InsertEnter * :set number