Vim related configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

99 lines
2.3 KiB

set t_Co=256
"set t_Co=16
set t_ut=
set ai
set background=dark
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set number
"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
nnoremap <F2> :GundoToggle<CR>
nnoremap <C-j> <C-w>w
imap  <End>
imap  <Home>
"nnoremap  $
"nnoremap  <bar>
nmap Y y$
nmap C c$
inoremap jj <Esc>
inoremap kk <Esc>
inoremap hh <Esc>
inoremap lll <Esc>
inoremap :wq <Esc>:wq
inoremap :w <Esc>:w
inoremap :q! <Esc>:q!
inoremap :q <Esc>:q
inoremap yy <Esc>yy
inoremap ddd <Esc>dd
" Force me to stop using arrow keys
inoremap <Left> <Nop>
nnoremap <Left> <Nop>
inoremap <Right> <Nop>
nnoremap <Right> <Nop>
inoremap <Up> <Nop>
nnoremap <Up> <Nop>
inoremap <Down> <Nop>
nnoremap <Down> <Nop>
" Fix Home/End/Delete
set backspace=indent,eol,start
"fixdel
" Idle timeout, exit insert mode after thirty seconds:
"au CursorHoldI * stopinsert
"set updatetime=30000
set clipboard=unnamedplus
set laststatus=2
set statusline=[%n]\ %<%F\ \ \ [%M%R%H%W%Y][%{&ff}]\ \ %=\ line:%l/%L\ col:%c\ \ \ %p%%\ \ \ @%{strftime(\"%H:%M:%S\")}
"set spell spelllang=en
"
" Force me to stop using arrow keys
inoremap <Left> <Esc>
nnoremap <Left> <Nop>
inoremap <Right> <Esc>
nnoremap <Right> <Nop>
inoremap <Up> <Esc>
nnoremap <Up> <Nop>
inoremap <Down> <Esc>
nnoremap <Down> <Nop>
" Change cursor from block to vertical pipe when in insert mode
if &term =~ "screen-256color"
if exists('$TMUX')
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>[5 q\x7\<Esc>\\"
let &t_SR = "\<Esc>Ptmux;\<Esc>\<Esc>[3 q\x7\<Esc>\\"
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>[1 q\x7\<Esc>\\"
else
let &t_SI = "\<Esc>[5 q"
let &t_SR = "\<Esc>[3 q"
let &t_EI = "\<Esc>[1 q"
endif
endif
autocmd BufRead,BufNewFile ~/Private/academic/certs/lf/LFS211/2017-12-16_study_materials/*.txt source ~/.muttvimrc