Skip to content

Instantly share code, notes, and snippets.

@vestel
Last active September 25, 2015 13:34
Show Gist options
  • Save vestel/319398 to your computer and use it in GitHub Desktop.
Save vestel/319398 to your computer and use it in GitHub Desktop.
.vimrc
set nocompatible
" Recently accessed projects menu (project plugin)
set viminfo^=!
set ruler showcmd number nowrap " Ruler, linenumbers , wrapping off
set ts=4 sts=4 et sw=4 smarttab " Defauls: 4 spaces as tab, autoindent, smarttabs
set ignorecase smartcase hlsearch incsearch " Search settings
set backspace=indent,eol,start
set cindent autoindent copyindent " Defaults: indents
set novisualbell noerrorbells t_vb= " Defaults: No blinking and so on
set statusline=%<%f%h%m%r\ %b\ %{&encoding}\ 0x\ \ %l,%c%V\ %P
set laststatus=2
set nobackup noswapfile
set wildmode=longest,list
set history=1000 undolevels=1000
set wildignore=*.swp,*.bak,*.pyc,*.class
set tags=./tags;/
set go-=T " Default: turn off fancy menu buttons
syntax enable
highlight ExtraWhitespace ctermbg=red guibg=red " Default: RedHighlight on ExtraWhiteSpace
match ExtraWhitespace /\s\+$/
filetype off " Required for vundle
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" Other plugins installed by Vundle
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/syntastic'
Plugin 'godlygeek/tabular'
Plugin 'tpope/vim-repeat'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-unimpaired'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-dispatch'
Plugin 'bling/vim-airline'
Plugin 'altercation/vim-colors-solarized'
Plugin 'fatih/vim-go'
Plugin 'fatih/molokai'
call vundle#end()
filetype plugin indent on
" End of Vundle
"
set foldmethod=indent
colors desert
set background=light
colorscheme solarized
set guifont=Bitstream\ Vera\ Sans\ Mono:h16
if has('gui_running')
set guifont=Monospace
" set lines=37 columns=115 " Default window size: enough for laptop
let NERDTreeIgnore=['\.pyc$','\.pyo$','py\.class$']
else
colorscheme molokai
let NERDTreeIgnore=['\.pyc$','\.pyo$','py\.class$']
endif
map <F8> :syntax off<CR>
map <C-F8> :syntax on<CR>
:map <F2> <Esc>:w<CR>:!python -m py_compile %:p<CR>
:imap <F2> <Esc>:w<CR>:!python -m py_compile %:p<CR>
autocmd BufRead,BufNewFile *.rb set ts=2 sts=2 sw=2 et " Ruby settings
autocmd BufRead,BufNewFile *.yml set ts=2 sts=2 sw=2 et " YAML settings
autocmd BufRead,BufNewFile *.erb set ts=2 sts=2 sw=2 et " ERB settings
autocmd BufRead,BufNewFile *.py set ts=4 sts=4 sw=4 et " Python settings
autocmd BufRead,BufNewFile *.ini set ts=4 sts=4 sw=4 et " INI settings
au FileType go nmap <leader>r <Plug>(go-run)
set background=dark
set t_Co=256
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
colorscheme molokai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment