Skip to content

Instantly share code, notes, and snippets.

@cpdean
Created June 18, 2013 14:34
Show Gist options
  • Save cpdean/5805863 to your computer and use it in GitHub Desktop.
Save cpdean/5805863 to your computer and use it in GitHub Desktop.
basic windows 7 gvim settings
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
set backupdir=~\vim\tmp\
set directory=~\vim\tmp\
set gfn=Ubuntu_Mono_for_Powerline:h14:cANSI
set bg=dark
colorscheme desert
set sw=2
set sts=2
set expandtab
set autoindent
"set sw=4
"set sts=0
"set ts=4
"set noexpandtab
"set autoindent
au BufNewFile,BufRead *.py set sw=4
" set visual bell. get rid of annoying error beep
set vb
set mouse=h
set ignorecase
set smartcase
set wildmode=longest,list
set wildmenu
" get rid of auto commenting
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
" VUNDLE SETTINGS
set nocompatible
filetype off
set rtp+=~/vimfiles/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'kien/ctrlp.vim'
Bundle 'Lokaltog/vim-powerline'
Bundle 'scrooloose/syntastic'
Bundle 'klen/python-mode'
" tweak syntastic
" ===============
let g:syntastic_python_checker_args = '--ignore=E501'
filetype plugin indent on
" eclim settings
" ===============
" default dir is always root of my workspace
if !exists('g:vimplugin_running')
"cd C:\i\cdean\workspace
endif
" eclim specifics
if exists('g:vimplugin_running')
set guioptions-=m " turn off menu bar
set guioptions-=T " turn off toolbar
set guioptions-=L " turn off left scrollbar
set guioptions-=l
" enable ctrl+F6 to switch between editors in gvim
nmap <silent> <c-f6> :call eclim#vimplugin#FeedKeys('Ctrl+F6')<cr>
" enable Ctrl-M to maximize the editor
nmap <silent> <c-m> :call eclim#vimplugin#FeedKeys('Ctrl+M', 1)<cr>
" enable ctrl+H to search for things in your workspace
nmap <silent> <c-h> :call eclim#vimplugin#FeedKeys('Ctrl+H')<cr>
" enable leader+e to send stuff to the clojure repl
vmap <silent> <leader>e :call eclim#vimplugin#FeedKeys('Ctrl+Enter')
endif
" Settings for VimClojure
" =======================
let vimclojure#HighlightBuiltins = 1 " Highlight Clojure's builtins
let VimClojure#ParenRainbow=1 " Rainbow parentheses'!
" config ctrlp
" ============
" add another root marker: every project root will have a pom.xml
"let g:ctrlp_root_markers = ['pom.xml']
let g:ctrlp_root_markers = ['.metadata'] " using .metadata to get to eclipse root to search all projects
let g:ctrlp_custom_ignore = '\v\.class$'
" powerline...
" ============
let g:Powerline_symbols = 'fancy'
set laststatus=2 " Always show the statusline
set encoding=utf-8 " Necessary to show Unicode glyphs
" ugh come on i need a faster search
set grepprg=findstr\ /n\ /s
" mappings
" ========
nmap <leader>h :h<CR>
" fix broken syntax drawing
noremap <F12> <Esc>:syntax sync fromstart<CR>
" make f11 run python stuff. good for selenium tests
noremap <F11> :w<CR>:silent !python %<CR>
noremap <S-F11> :w<CR>:!python -m pdb %<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment