mirror of
https://codeberg.org/mclemens/dotfiles.git
synced 2025-01-06 22:37:24 -05:00
added .vimrc
This commit is contained in:
parent
5ad232611c
commit
cf4a381930
62
.vimrc
Normal file
62
.vimrc
Normal file
@ -0,0 +1,62 @@
|
||||
" Vundle stuff
|
||||
set nocompatible " required
|
||||
filetype off " required
|
||||
set rtp+=~/.vim/bundle/Vundle.vim
|
||||
call vundle#begin()
|
||||
Plugin 'gmarik/Vundle.vim'
|
||||
Plugin 'tmhedberg/SimpylFold'
|
||||
Plugin 'vim-scripts/indentpython.vim'
|
||||
Bundle 'Valloric/YouCompleteMe'
|
||||
Plugin 'vim-syntastic/syntastic'
|
||||
Plugin 'nvie/vim-flake8'
|
||||
Plugin 'jnurmine/Zenburn'
|
||||
Plugin 'scrooloose/nerdtree'
|
||||
Plugin 'jistr/vim-nerdtree-tabs'
|
||||
|
||||
" add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)
|
||||
|
||||
" All of your Plugins must be added before the following line
|
||||
call vundle#end() " required
|
||||
filetype plugin indent on " required
|
||||
|
||||
" misc settings, e.g. line numbers, 80 colum mode etc
|
||||
set modeline
|
||||
set nu
|
||||
highlight OverLength ctermbg=red ctermfg=white guibg=#592929
|
||||
match OverLength /\%81v.\+/
|
||||
|
||||
" Folding
|
||||
set foldmethod=indent
|
||||
set foldlevel=99
|
||||
" Enable folding with the spacebar
|
||||
nnoremap <space> za
|
||||
let g:SimpylFold_docstring_preview=1
|
||||
let g:ycm_autoclose_preview_window_after_insertion = 1
|
||||
let g:ycm_autoclose_preview_window_after_completion = 1
|
||||
|
||||
" Nice auto indent
|
||||
au BufNewFile,BufRead *.py
|
||||
\ set tabstop=4 |
|
||||
\ set softtabstop=4 |
|
||||
\ set shiftwidth=4 |
|
||||
\ set textwidth=79 |
|
||||
\ set expandtab |
|
||||
\ set autoindent |
|
||||
\ set fileformat=unix |
|
||||
|
||||
au BufNewFile,BufRead *.js,*.html,*.css
|
||||
\ set tabstop=2 |
|
||||
\ set softtabstop=2 |
|
||||
\ set shiftwidth=2 |
|
||||
|
||||
|
||||
" Autocomletion
|
||||
|
||||
" Syntax highlighting
|
||||
let python_highlight_all=1
|
||||
syntax on
|
||||
|
||||
" nice Theme
|
||||
|
||||
colorscheme zenburn
|
||||
|
Loading…
Reference in New Issue
Block a user