dotfiles/.vimrc
michener 86cc58a3d4 Massive vim coolness
git-svn-id: http://photonzero.com/dotfiles/trunk@22 23f722f6-122a-0410-8cef-c75bd312dd78
2008-06-21 00:48:56 +00:00

64 lines
1.3 KiB
VimL
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax on
"colorscheme slate
"colorscheme dante
colorscheme barak
"set gfn=Monaco:h12:a
set ts=4
set nocompatible
set smartcase
set smartindent
"Sources
source ~/.vim/supertab.vim
source ~/.vim/charm.vim
source ~/.vim/plugin/AppleT.vim
"source ~/.vim/syntax/motd.vim
au BufNewFile,BufRead motd.public,/tmp/motd.public.r.* setf motd
"Highlighting features
autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete
autocmd FileType python set tags+=$HOME/.vim/tags/python.ctags
autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType python call SuperTabSetCompletionType("<C-X><C-O>")
let python_highlight_all = 1
set t_Co=16
set t_Sf=ESC[3%dm
set t_Sb=ESC[4%dm
"set t_kb=
"Remappings
nnoremap gc :tabnew<CR>
nnoremap gK :tabclose<CR>
nnoremap gn gt
nnoremap gp gT
nnoremap gz :pclose<CR>
nmap P o<Esc>p
nnoremap j gj
nnoremap k gk
vnoremap j gj
vnoremap k gk
nnoremap <Down> gj
nnoremap <Up> gk
vnoremap <Down> gj
vnoremap <Up> gk
inoremap <Down> <C-o>gj
inoremap <Up> <C-o>gk
nnoremap <C-i> <C-a>
nnoremap <C-a> ^
nnoremap <C-e> $
vnoremap <C-a> ^
vnoremap <C-e> $
inoremap <C-a> <C-O>^
inoremap <C-e> <C-O>$
if !exists(":W")
command W :w
endif
command SaveSession :mksession! ~/.vim_last_session
command LoadSession :source ~/.vim_last_session
"inoremap ;a <esc>