summaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
authorAmin Bandali <me@aminb.org>2015-05-27 22:35:32 -0400
committerAmin Bandali <me@aminb.org>2015-05-27 22:35:32 -0400
commit75905dbc2071e161e42f0240a4fc7a9e996b5d43 (patch)
treede381374dff7cf2f2057fbbf78c6a7ec3e4b4502 /vim
parentdc1f43cbe4a91b6ea75c29b0b7eb158ca8f99d0b (diff)
downloadconfigs-75905dbc2071e161e42f0240a4fc7a9e996b5d43.tar.gz
configs-75905dbc2071e161e42f0240a4fc7a9e996b5d43.tar.xz
configs-75905dbc2071e161e42f0240a4fc7a9e996b5d43.zip
[vim] disable relativenumber
(too distracting)
Diffstat (limited to '')
-rw-r--r--vim/.vimrc17
1 files changed, 4 insertions, 13 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 58f3b17..f0c6919 100644
--- 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
-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
@@ -140,15 +140,6 @@ endif
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