dotfiles/.vimrc

71 lines
2.4 KiB
VimL
Raw Permalink Normal View History

2017-09-01 14:17:49 -04:00
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"
" " alternatively, pass a path where Vundle should install plugins
" "call vundle#begin('~/some/path/here')
"
" " let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
"
" " Add all your plugins here (note older versions of Vundle used Bundle
" instead of Plugin)
Plugin 'vim-scripts/indentpython.vim'
"
" " All of your Plugins must be added before the following line
" call vundle#end() " required
filetype plugin indent on " required
2016-10-22 19:47:35 -05:00
" All system-wide defaults are set in $VIMRUNTIME/archlinux.vim (usually just
" /usr/share/vim/vimfiles/archlinux.vim) and sourced by the call to :runtime
" you can find below. If you wish to change any of those settings, you should
" do it in this file (/etc/vimrc), since archlinux.vim will be overwritten
" everytime an upgrade of the vim packages is performed. It is recommended to
" make changes after sourcing archlinux.vim since it alters the value of the
" 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages.
runtime! archlinux.vim
" If you prefer the old-style vim functionalty, add 'runtime! vimrc_example.vim'
" Or better yet, read /usr/share/vim/vim74/vimrc_example.vim or the vim manual
" and configure vim to your own liking!
syntax on
colorscheme SweetCandy
set mouse=r
2016-10-22 19:47:35 -05:00
set cursorline
set number
set relativenumber
set background=dark
2016-10-22 19:47:35 -05:00
" python PEP 8 standards
set textwidth=79 " lines longer than 79 columns will be broken
set shiftwidth=4 " operation >> indents 4 columns; << unindents 4 columns
set tabstop=4 " a hard TAB displays as 4 columns
set expandtab " insert spaces when hitting TABS
set softtabstop=4 " insert/delete 4 spaces when hitting a TAB/BACKSPACE
set autoindent " align the new line indent with the previous line
2017-09-01 14:17:49 -04:00
set fileformat=unix
2018-01-10 02:22:44 -06:00
" markdown preview plugin
Plugin 'JamshedVesuna/vim-markdown-preview'
Plugin 'heavenshell/vim-pydocstring'
2017-09-01 14:17:49 -04:00
set encoding=utf-8
let g:syntastic_check_on_open = 1
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g'\"" | endif
endif
2018-07-18 00:21:33 -05:00
autocmd filetype lisp,scheme,art setlocal equalprg=scmindent.rkt