diff --git a/.tmux.conf b/.tmux.conf index f5348e4..6d98306 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -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 diff --git a/.vimrc b/.vimrc index 924d404..9e68619 100644 --- a/.vimrc +++ b/.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 bi :BundleInstall map c "+ map fw :FixWhitespace +map i mmgg=G`m map lf :call LargeFileToggle() map p "+p map s :e ~/Source/ @@ -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 diff --git a/tool-sharpener.txt b/tool-sharpener.txt index 2e5864f..0f72b1f 100644 --- a/tool-sharpener.txt +++ b/tool-sharpener.txt @@ -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