Skip to content

Instantly share code, notes, and snippets.

@chaudum
Created August 26, 2016 07:32
Show Gist options
  • Save chaudum/f641d9f4221af8f94f7736830063a1ed to your computer and use it in GitHub Desktop.
Save chaudum/f641d9f4221af8f94f7736830063a1ed to your computer and use it in GitHub Desktop.
" ~/.vimrc
" vim configuration for terminal
filetype off
execute pathogen#infect()
execute pathogen#helptags()
syntax on
color hybrid
filetype plugin indent on
set background=dark
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set encoding=utf-8
set ffs=unix,dos,mac
set clipboard=unnamed
set ruler
set number
set showcmd
set showmode
set gdefault
set cursorline
set nohlsearch
set colorcolumn=80
set rtp+=~/.fzf
"noremap <Up> <NOP>
"noremap <Down> <NOP>
"noremap <Left> <NOP>
"noremap <Right> <NOP>
silent! nmap <F2> :NERDTreeToggle<CR>
autocmd BufNewFile,BufRead *.conf set syntax=nginx
autocmd BufNewFile,BufRead *.sls set syntax=yaml
autocmd BufNewFile,BufRead *.txt set syntax=rst
autocmd BufNewFile,BufRead *.gradle set syntax=groovy
autocmd BufNewFile,BufRead *.init set syntax=upstart
autocmd BufNewFile,BufRead *.upstart set syntax=upstart
"autocmd BufNewFile,BufRead */dubstep-at/*.html syntax match Comment /\%^---\_.\{-}---$/
autocmd BufNewFile * silent! 0r $HOME/.vim/templates/%:e.tpl
autocmd FileType python setlocal shiftwidth=4 tabstop=4 go+=b completeopt-=preview
let g:numbers_exclude = ['tagbar', 'gundo', 'minibufexpl', 'nerdtree']
"let g:dbext_default_profile_crate_local = 'type=CRATE:host=localhost:port=4200'
let g:jedi#completions_command = "<C-N>"
let g:jedi#popup_on_dot = 0
let g:jedi#use_splits_not_buffers = "winwidth"
let g:jedi#show_call_signatures = 0
let g:markdown_fenced_languages = ['html', 'python', 'bash=sh']
let g:markdown_syntax_conceal = 0
let g:markdown_frontmatter = 1
let g:airline_theme = 'distinguished'
highlight ExtraWhitespace ctermbg=darkred guibg=darkred
match ExtraWhitespace /\s\+$/
"highlight OverLength ctermbg=darkred ctermfg=white guibg=#592929
"match OverLength /\%80v.\+/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment