Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
137 lines (104 sloc) 3.36 KB
" When started as "evim", evim.vim will already have done these settings.
if v:progname =~? "evim"
finish
endif
" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
if has("vms")
set nobackup " do not keep a backup file, use versions instead
else
set backup " keep a backup file
endif
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
" let &guioptions = substitute(&guioptions, "t", "", "g")
" Don't use Ex mode, use Q for formatting
map Q gq
" This is an alternative that also works in block mode, but the deleted
" text is lost and it only works for putting the current register.
"vnoremap p "_dp
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
" Only do this part when compiled with support for autocommands.
if has("autocmd")
" Enable file type detection.
" Use the default filetype settings, so that mail gets 'tw' set to 72,
" 'cindent' is on in C files, etc.
" Also load indent files, to automatically do language-dependent indenting.
filetype plugin indent on
" Put these in an autocmd group, so that we can delete them easily.
augroup vimrcEx
au!
" For all text files set 'textwidth' to 78 characters.
autocmd FileType text setlocal textwidth=78
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
augroup END
else
set autoindent " always set autoindenting on
endif " has("autocmd")
"get syntax highlighting
syntax on
set ai
" set my colorscheme to that of lilac
colorscheme lucius
set sw=4
set tw=1000
set tabstop=4
set smarttab
set expandtab
set wrapmargin=1000
set number
set showmode
set ic
set mousef
set autoread
set wildmenu
map <F2> :w<CR>
map <LEADER>w :bwipeout!<CR>
map <LEADER>c :close<CR>
"imap <C-W> <C-o>:bwipeout!<CR>
"function! CleverTab()
" if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$'
" return "\<Tab>"
" else
" return "\<C-N>"
"endfunction
"inoremap <Tab> <C-R>=CleverTab()<CR>
map <M-1> :tabn 1<cr>
map <M-2> :tabn 2<cr>
map <M-3> :tabn 3<cr>
map <M-4> :tabn 4<cr>
map <M-5> :tabn 5<cr>
map <M-6> :tabn 6<cr>
map <M-7> :tabn 7<cr>
map <M-8> :tabn 8<cr>
map <M-9> :tabn 9<cr>
imap <M-1> <C-o>:tabn 1<cr>
imap <M-2> <C-o>:tabn 2<cr>
imap <M-3> <C-o>:tabn 3<cr>
imap <M-4> <C-o>:tabn 4<cr>
imap <M-5> <C-o>:tabn 5<cr>
imap <M-6> <C-o>:tabn 6<cr>
imap <M-7> <C-o>:tabn 7<cr>
imap <M-8> <C-o>:tabn 8<cr>
imap <M-9> <C-o>:tabn 9<cr>
iabbrev pdb; import pdb; pdb.set_trace()
iabbrev rpdb2; import rpdb2; rpdb2.start_embedded_debugger('0000', fAllowRemote=True)
"set list
"set listchars=tab:»·,trail:·
Something went wrong with that request. Please try again.