Skip to content

Instantly share code, notes, and snippets.

@jeremydw
Last active July 12, 2016 21:30
Show Gist options
  • Save jeremydw/adae8f45302156ec214c to your computer and use it in GitHub Desktop.
Save jeremydw/adae8f45302156ec214c to your computer and use it in GitHub Desktop.
.vimrc
autocmd BufWritePre *.py :%s/\s\+$//e
autocmd BufWritePre *.md :%s/\s\+$//e
colorscheme desert
filetype plugin indent on
filetype plugin on
map # :s/^/#/<Return>
map 1 :tabprev<Return>
map 2 :tabnext<Return>
map 3 :s/^#//<Return>
map 4 :tabe %:h<Return>
map <Space> i
map @ :tabnew<Return>
map 8 :s/\%V\(.*\)\%V\Z\(.\)/{{_("\1\2")}}/g<Return>
set ai
set encoding=utf-8
set expandtab
set incsearch
set laststatus=2
set ls=2
set matchtime=600
set mouse=a
set nobackup
set noswapfile
set shiftwidth=2
set showmatch
set showtabline=2
set smarttab
set softtabstop=2
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
set wildmenu
syntax enable
syntax on
set number
highlight LineNr ctermfg=blue
let python_highlight_all = 1
if has("gui_running")
syntax on
set hlsearch
colorscheme torte
set bs=2
set ai
set ruler
endif
execute pathogen#infect()
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
"let g:syntastic_always_populate_loc_list = 1
"let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_python_checkers = ['pylint']
let g:syntastic_mode_map = { 'passive_filetypes': ['sass', 'scss'] }
set synmaxcol=200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment