Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " init
- set clipboard=unnamed
- set nocompatible " required
- filetype off " required
- " nice colors
- colorscheme 1989
- autocmd Filetype ruby setlocal sts=2 sw=2
- autocmd Filetype eruby setlocal sw=2
- autocmd Filetype yaml setlocal sw=2 tabstop=2
- set hlsearch
- " set the runtime path to include Vundle and initialize
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- " let Vundle manage Vundle, required
- Plugin 'VundleVim/Vundle.vim'
- Plugin 'godlygeek/tabular'
- Plugin 'scrooloose/syntastic'
- Plugin 'scrooloose/nerdtree'
- Plugin 'pearofducks/ansible-vim'
- Plugin 'rodjek/vim-puppet'
- Plugin 'vim-airline/vim-airline'
- Plugin 'vim-airline/vim-airline-themes'
- " All of your Plugins must be added before the following line
- call vundle#end() " required
- filetype plugin indent on " required
- " Enable vim-airline
- set laststatus=2
- let g:airline_theme='base16'
- " no whitespace
- " define BadWhitespace before using in a match
- highlight BadWhitespace ctermbg=red guibg=darkred
- au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
- " general things
- set encoding=utf-8
- syntax on
- set nu
- set showmatch
- set backspace=indent,eol,start
- " YAML Stuffs
- au BufNewFile,BufRead *.yml,*.yaml
- \ set tabstop=2 |
- \ set softtabstop=2 |
- \ set shiftwidth=2 |
- \ set expandtab |
- \ set autoindent |
- \ set fileformat=unix |
- "make tabs, trailing whitespace, and non-breaking spaces visible
- exec "set listchars=tab:\uBB\uBB,trail:\uB7,nbsp:~"
- set list
- "set expandtab
- "set incsearch
- "set smartcase
- "set ruler
- "set showmode
- "set viminfo=%,'50,\"100,:100,n~/.viminfo
- "set autoindent
- " hen open a new file remember the cursor position of the last editing
- if has("autocmd")
- " When editing a file, always jump to the last cursor position
- autocmd BufReadPost * if line("'\"") | exe "'\"" | endif
- endif
- " folding settings
- set foldmethod=indent "fold based on indent
- set foldnestmax=10 "deepest fold is 10 levels
- set nofoldenable "dont fold by default
- set foldlevel=1 "this is just what i use
- " bettingclient_catalog.yml folding settings
- function! CatalogFold()
- if getline(v:lnum) =~ '^.*client_.*$'
- return 1
- elseif getline(v:lnum) =~ '^$'
- return 0
- endif
- return "="
- endfunction
- " bettingclient_catalog folding
- au BufEnter bettingclient_catalog.yml setlocal foldmethod=expr
- au BufEnter bettingclient_catalog.yml setlocal foldexpr=CatalogFold()
- au BufEnter bettingclient_catalog.yml setlocal nofoldenable
- au BufEnter bettingclient_catalog.yml setlocal foldlevel=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement