Absolute number at row, renumber tmux, scrolloff

This commit is contained in:
Andrew Tomaka 2013-08-19 19:43:39 -04:00
parent 6a9cef94ee
commit c66c1163e0
3 changed files with 10 additions and 5 deletions

View file

@ -26,6 +26,9 @@ set -g history-limit 10000
# no autorename
set -g automatic-rename off
# renumber windows
set -g renumber-windows on
# activity stuff
set-window-option -g monitor-activity off

9
.vimrc
View file

@ -42,8 +42,10 @@ set autoindent
set colorcolumn=80 " Ruler at line 80
set nomodeline
set relativenumber " Relative line numbers
set number
set noswapfile " Hope for the best
set virtualedit=all " Cursor can go anywhere
set scrolloff=3 " Keep cursor from touching edges
" Tabs are 2 spaces
set tabstop=2
set softtabstop=2
@ -80,6 +82,7 @@ let mapleader = ","
map <Leader>bi :BundleInstall<cr>
map <Leader>c "+
map <Leader>fw :FixWhitespace<cr>
map <Leader>i mmgg=G`m<cr>
map <Leader>lf :call LargeFileToggle()<cr>
map <Leader>p "+p
map <Leader>s :e ~/Source/<cr>
@ -105,11 +108,7 @@ hi IndentGuidesEven ctermbg=234
" Functions
" Toggle relative line numbers and cursorline; useful for long line files
function! LargeFileToggle()
if &relativenumber
set number
else
set relativenumber
endif
set relativenumber!
set cursorline!
set cursorcolumn!
endfunction

View file

@ -4,3 +4,6 @@
* insert-sudo function return to end of line
* vi mode on command line
* * set -o vi
* vim
* * copy and paste still off on laptop
* OpenCurrentLineInBrowser() vimscript function