diff --git a/.vimrc b/.vimrc new file mode 100755 index 0000000..b8af942 --- /dev/null +++ b/.vimrc @@ -0,0 +1,107 @@ +set nomodeline +set t_Co=256 +"set t_Co=16 +set t_ut= +set ai +set background=dark +"set background=light +"set textwidth=80 +set hlsearch +"color asu1dark +"set t_ut= +let g:solarized_italic=0 +"let g:solarized_bold=0 +"let g:solarized_underline=0 +colorscheme sorcerer +let g:csv_delim=',' + +" Pathogen +filetype off " Pathogen needs to run before plugin indent on +execute pathogen#infect() +"call pathogen#runtime_append_all_bundles() +"call pathogen#helptags() " generate help tags for everything in 'runtimepath' +filetype plugin indent on +filetype plugin on +syntax on +set tabstop=4 +set softtabstop=4 +set shiftwidth=4 +set expandtab +nnoremap :GundoToggle +nnoremap w +"imap  +"imap  +"nnoremap  $ +"nnoremap  +nmap Y y$ +nmap C c$ +"nnoremap V +inoremap jj +inoremap kk +inoremap hh +inoremap lll +inoremap bbb +inoremap eeee +inoremap ww +inoremap yy yy +inoremap ddd dd +inoremap dG dG +inoremap :w :w +inoremap :wq :wq +inoremap :q :q +inoremap :q! :q! +nnoremap << +inoremap + +" Force me to stop using arrow keys +inoremap +nnoremap +inoremap +nnoremap +inoremap +nnoremap +inoremap +nnoremap + +" Fix Home/End/Delete +set backspace=indent,eol,start +"fixdel + +" Idle timeout, exit insert mode after thirty seconds: +"au CursorHoldI * stopinsert +"set updatetime=30000 + +"if $TMUX == '' +" set clipboard+=unnamed +"endif +set clipboard+=unnamed + +set laststatus=2 +set statusline=[%n]\ %<%F\ \ \ [%M%R%H%W%Y][%{&ff}]\ \ %=\ line:%l/%L\ col:%c\ \ \ %p%%\ \ \ @%{strftime(\"%H:%M:%S\")} + +if $VIM_CRONTAB == "true" + set nobackup + set nowritebackup +endif +"set spell spelllang=en + +" Change cursor shape between insert and normal mode in iTerm2.app +if $TERM_PROGRAM =~ "iTerm.app" + if exists('$TMUX') + let &t_SI = "\Ptmux;\\]50;CursorShape=1\x7\\\" " Vertical bar in insert mode + let &t_EI = "\Ptmux;\\]50;CursorShape=0\x7\\\" " Block in normal mode + let &t_SR = "\Ptmux;\\]50;CursorShape=2\x7\\\" " Block in normal mode + else + let &t_SI = "\]50;CursorShape=1\x7" " Vertical bar in insert mode + let &t_EI = "\]50;CursorShape=0\x7" " Block in normal mode + let &t_SR = "\]50;CursorShape=2\x7" " Block in normal mode + endif +endif + +if has("autocmd") + au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif +endif + +autocmd BufRead,BufNewFile ~/pindrop/meetings/cs_support_weekly/* source ~/.muttvimrc +autocmd BufRead,BufNewFile ~/pindrop/meetings/cs_support_proactive_monitoring/* source ~/.muttvimrc +autocmd BufRead,BufNewFile ~/meetings/* source ~/.muttvimrc