Absolute number at row, renumber tmux, scrolloff
This commit is contained in:
parent
6a9cef94ee
commit
c66c1163e0
3 changed files with 10 additions and 5 deletions
|
@ -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
9
.vimrc
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue