Last active
August 29, 2015 14:16
-
-
Save dannon/a64b04f49289082bff6a to your computer and use it in GitHub Desktop.
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
"ack.vim ctrlp.vim nerdcommenter sort-python-imports vim-hackernews vim-markdown vim-scmdiff | |
"autopep8.vim jellybeans.vim pep8 syntastic vim-irblack vim-repeat YouCompleteMe | |
set nocompatible | |
filetype off | |
"Pathogen | |
call pathogen#infect() | |
call pathogen#helptags() | |
"Basics | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
set encoding=utf-8 | |
set backspace=indent,eol,start "Backspace more powerful | |
"set autochdir | |
"Spacing | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
set autoindent | |
set expandtab | |
set nowrap | |
"Interface options | |
filetype plugin indent on | |
syntax on | |
set background=dark "Assert dark background | |
set t_Co=256 | |
"set mouse=a "Enable Mouse | |
set history=1000 | |
"set spell "Spell check this thing. | |
set cursorline "Highlight current line | |
set ruler "Show line,col | |
set number "Line numbers | |
set guioptions=aAce | |
colorscheme ir_black | |
if has("gui_running") | |
set guifont=Ubuntu\ Mono\ 12 | |
endif | |
set list | |
set listchars="" " Reset the listchars$ | |
set listchars=tab:\ \ " a tab should display as " ", trailing whitespace as "." | |
set listchars+=trail:. " show trailing spaces as dots$ | |
set listchars+=extends:> " The character to show in the last column when wrap is$ | |
" off and the line continues beyond the right of the screen$ | |
set listchars+=precedes:< " The character to show in the last column when wrap is$ | |
" off and the line continues beyond the right of the screen$ | |
"Tab Completion | |
set wildmode=list:longest,list:full | |
set wildignore+=*.o,*.obj,.git,*.rbc,*.pyc,*.mako.py,*.rstA | |
"Searching | |
set hlsearch "Highlight search results | |
set incsearch "Incremental searching | |
set ignorecase "Ignore case in searching | |
set smartcase "Unless capitals | |
"Automatically rip trailing whitespace. | |
"autocmd FileType c,cpp,java,php,js,python,twig,xml,yml autocmd BufWritePre <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\s\\+$","","")')) | |
"Key mapping | |
" | |
let mapleader = "\\" | |
map <D-/> <plug>NERDCommenterToggle<CR> " Command-/ to toggle comments | |
map <A-/> <plug>NERDCommenterToggle<CR> " Alt-/ to toggle comments | |
map <C-/> <plug>NERDCommenterToggle<CR> " Control-/ to toggle comments | |
"Ctrl-P customization | |
let g:ctrlp_mru_files = 0 | |
"let g:ctrlp_custom_ignore = { | |
" \ 'dir': '\.hg$\|eggs$\|' } | |
"Pymode Configuration" | |
"let g:pymode_lint_ignore = "E501,E201,E202,C901" | |
"let g:pymode_debug = 1 | |
let g:syntastic_python_checkers=['flake8'] " , 'pylint'] | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_loc_list_height = 5 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
set statusline=%f | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
set statusline+=%= "left/right separator | |
set statusline+=%c, "cursor column | |
set statusline+=%l/%L "cursor line/total lines | |
set statusline+=\ %P "percent through file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment