Created
June 5, 2012 23:12
-
-
Save jetpks/2878724 to your computer and use it in GitHub Desktop.
my older .vimrc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call pathogen#infect() | |
syntax on | |
set autoindent | |
set smartindent | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set ruler | |
set hlsearch | |
set incsearch | |
set backup | |
set backupdir=~/.vimbackup,. | |
" Tell vim to remember certain things when we exit | |
" '10 : marks will be remembered for up to 10 previously edited files | |
" "100 : will save up to 100 lines for each register | |
" :20 : up to 20 lines of command-line history will be remembered | |
" % : saves and restores the buffer list | |
" n... : where to save the viminfo files | |
set viminfo='10,\"100,:20,%,n~/.viminfo | |
function! ResCur() | |
if line("'\"") <= line("$") | |
normal! g`" | |
return 1 | |
endif | |
endfunction | |
augroup resCur | |
autocmd! | |
autocmd BufWinEnter * call ResCur() | |
augroup END | |
syntax enable | |
colorscheme mango | |
"set background=dark | |
"colorscheme solarized | |
"highlight Normal ctermbg=none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment