summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2014-11-25 17:28:33 -0500
committerJune McEnroe <programble@gmail.com>2014-11-25 17:28:33 -0500
commit07a32d0de1be7d630e9800ed70fcc2eb50b7cec2 (patch)
tree0e95cf169685d2e0fc1e794de05f38dee45f76a9
parentAdd Goyo.vim (diff)
downloadsrc-07a32d0de1be7d630e9800ed70fcc2eb50b7cec2.tar.gz
src-07a32d0de1be7d630e9800ed70fcc2eb50b7cec2.zip
Simplify C-n relative number toggle
Diffstat (limited to '')
-rw-r--r--.vimrc9
1 files changed, 1 insertions, 8 deletions
diff --git a/.vimrc b/.vimrc
index 49545539..fcd5a28d 100644
--- a/.vimrc
+++ b/.vimrc
@@ -185,14 +185,7 @@ nmap Y y$
 imap <S-tab> <C-v><tab>
 
 " Toggle relative/absolute line numbers.
-function! NumberToggle()
-  if(&relativenumber == 1)
-    set norelativenumber
-  else
-    set relativenumber
-  endif
-endfunc
-nmap <C-n> :call NumberToggle()<CR>
+nmap <C-n> :set relativenumber!<CR>
 
 " Common typos.
 command! W :w
id=ef41b4a1a81baa4012038ada0b69c20651c56c81&follow=1'>Fix matching make tags with no sourcesJune McEnroe 2019-12-19Avoid matching := assignments as tagsJune McEnroe 2019-12-18Hide line numbers when rendering mdocJune McEnroe Hack: output an extra <td> after rendering mdoc so that line numbers can be hidden based on there being three. This required splitting source-filter and about-filter since on about pages there is no table. 2019-12-18Customize cgit CSSJune McEnroe 2019-12-18Use :target rather than :focus pseudo-classJune McEnroe :target persists after you click on something else. 2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe NULs in the input cause an infinite loop in htmlEscape, not to mention regexes obviously not working, etc. 2019-12-16Post "cgit setup"June McEnroe