dotfiles/system/.vimrc

43 lines
1.7 KiB
VimL
Raw Normal View History

2017-02-27 06:49:09 +00:00
set nocompatible " get rid of Vi compatibility mode. SET FIRST!
2017-06-01 14:35:41 +00:00
filetype plugin indent on
2017-03-27 04:54:10 +00:00
" set the runtime path to include vundle
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle
Plugin 'VundleVim/Vundle.vim'
Plugin 'pearofducks/ansible-vim'
Plugin 'avakhov/vim-yaml'
2017-03-27 04:54:10 +00:00
" All Vundle Plugins go above here
call vundle#end()
"execute pathogen#infect('bundle/{}')
filetype plugin indent on " filetype detection[ON] plugin[ON] indent[ON]
2017-02-27 06:49:09 +00:00
set t_Co=256 " enable 256-color mode.
syntax enable " enable syntax highlighting (previously syntax on).
2017-02-27 06:49:09 +00:00
colorscheme desert " set colorscheme
set number " show line numbers
set laststatus=2 " last window always has a statusline
filetype indent on " activates indenting for files
set nohlsearch " Don't continue to highlight searched phrases.
set incsearch " But do highlight as you type your search.
set ignorecase " Make searches case-insensitive.
set ruler " Always show info along bottom.
set autoindent " auto-indent
set tabstop=4 " tab spacing
set softtabstop=4 " unify
2017-10-17 13:59:43 +00:00
set shiftwidth=2 " indent/outdent by 2 columns
2017-02-27 06:49:09 +00:00
set shiftround " always indent/outdent to the nearest tabstop
set expandtab " use spaces instead of tabs
set smarttab " use tabs at the start of a line, spaces elsewhere
set wrap " wrap text
set linebreak
set nolist " list disables linbreak
2017-02-27 06:49:09 +00:00
" swap, backup and undo directories
" make with: mkdir -p ~/.vim/{backup_files,swap_files,undo_files}
2017-02-27 06:49:09 +00:00
set backupdir=~/.vim/backup_files//
set directory=~/.vim/swap_files//
set undodir=~/.vim/undo_files//