Skip to content

Instantly share code, notes, and snippets.

@sc68cal
Last active November 15, 2019 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sc68cal/1464673 to your computer and use it in GitHub Desktop.
Save sc68cal/1464673 to your computer and use it in GitHub Desktop.
.vimrc files
set fileencodings=utf-8
set encoding=utf-8
syntax enable
set nocompatible " Use Vim defaults (much better!)
set bs=indent,eol,start " allow backspacing over everything in insert mode
set ai " always set autoindenting on
set smartindent
set rtp+=~/.vim/vundle.git/
call vundle#rc()
Bundle 'tpope/vim-fugitive'
Bundle 'plasticboy/vim-markdown'
filetype plugin indent on
" Python preferences
autocmd FileType python set tabstop=4|set shiftwidth=4|set noexpandtab
set fileencodings=utf-8
set encoding=utf-8
syntax enable
set modelines=0
set shortmess=at
set hlsearch
set ruler
set nocompatible " Use Vim defaults (much better!)
set bs=indent,eol,start " allow backspacing over everything in insert mode
set ai " always set autoindenting on
set smartindent
set lbr
set nu
set tags=./tags;
set rtp+=~/.vim/bundle/Vundle.vim/
set expandtab
set shiftwidth=4
let mapleader=","
call vundle#rc()
Plugin 'gmarik/vundle'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-markdown'
Plugin 'scrooloose/nerdtree'
Plugin 'Gundo'
Plugin 'majutsushi/tagbar'
Plugin 'klen/python-mode'
Plugin 'duff/vim-scratch'
Plugin 'vim-ruby/vim-ruby'
Plugin 'Valloric/YouCompleteMe'
Plugin 'rodjek/vim-puppet'
Plugin 'Rykka/riv.vim'
Plugin 'lepture/vim-jinja'
Plugin 'tpope/rails.vim'
Plugin 'mileszs/ack.vim'
Plugin 'stephpy/vim-yaml'
Plugin 'gotcha/vimpdb'
Plugin 'fatih/vim-go'
filetype plugin indent on
" Python preferences
let g:pymode_rope_lookup_project = 0
let g:pymode_rope_complete_on_dot = 0
let g:pymode_rope = 0
let g:pymode_options_max_line_length = 79
autocmd FileType mail setlocal spell spelllang=en_us
autocmd FileType ruby set tabstop=2|set shiftwidth=2| set expandtab | compiler ruby
autocmd FileType go compiler go
autocmd FileType sh set tabstop=4|set shiftwidth=4| set expandtab
au BufRead,BufNewFile *.md,*.markdown set filetype=markdown|setlocal spell spelllang=en_us| set textwidth=70
au BufRead,BufNewFile *.go set ft=go
au BufRead,BufNewFile *.pp set ft=puppet
au BufRead,BufNewFile Vagrantfile set ft=ruby
au BufRead,BufNewFile *.html set tabstop=4 | set shiftwidth=4
au BufRead,BufNewFile *.rst set textwidth=70 | setlocal spell spelllang=en_us
" Gundo binding
nnoremap <F5> :GundoToggle<CR>
" Tagbar
nmap <F8> :TagbarToggle<CR>
let g:ycm_path_to_python_interpreter = '/usr/bin/python'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment