Newer
Older
vim / vimrc
set nocompatible 		" required
filetype off			" required

set splitright
set splitbelow

"split navigation
nnoremap <C-RIGHT> <C-W><C-L>
nnoremap <C-DOWN> <C-W><C-J>
nnoremap <C-UP> <C-W><C-K>
nnoremap <C-LEFT> <C-W><C-H>

nnoremap <F2> :Explore

au BufNewFile,BufRead *.s set tabstop=2
au BufNewFile,BufRead *.s set softtabstop=2
au BufNewFile,BufRead *.s set shiftwidth=2
au BufNewFile,BufRead *.s set autoindent
au BufNewFile         *.s set fileformat=unix 
au BufNewFile,BufRead *.s set textwidth=79
au BufNewFile,BufRead *.s set expandtab 

au BufNewFile,BufRead *.py set tabstop=4
au BufNewFile,BufRead *.py set softtabstop=4 
au BufNewFile,BufRead *.py set shiftwidth=4 
au BufNewFile,BufRead *.py set textwidth=79 
au BufNewFile,BufRead *.py set expandtab 
au BufNewFile,BufRead *.py set autoindent 
au BufNewFile         *.py set fileformat=unix

au BufNewFile,BufRead *.html set tabstop=2
au BufNewFile,BufRead *.html set softtabstop=2
au BufNewFile,BufRead *.html set shiftwidth=2
au BufNewFile,BufRead *.html set autoindent
au BufNewFile,BufRead *.html set tw=0 
au BufNewFile,BufRead *.html set fo=cq 
au BufNewFile,BufRead *.html set wm=0 
au BufNewFile         *.html set fileformat=unix 
au BufNewFile,BufRead *.html set expandtab 

au BufNewFile,BufRead *.css set tabstop=2
au BufNewFile,BufRead *.css set softtabstop=2
au BufNewFile,BufRead *.css set shiftwidth=2
au BufNewFile,BufRead *.css set autoindent
au BufNewFile         *.css set fileformat=unix 
au BufNewFile,BufRead *.css set textwidth=79
au BufNewFile,BufRead *.css set expandtab 

au BufNewFile,BufRead *.js set tabstop=2
au BufNewFile,BufRead *.js set softtabstop=2
au BufNewFile,BufRead *.js set shiftwidth=2
au BufNewFile,BufRead *.js set  autoindent
au BufNewFile         *.js set fileformat=unix 
au BufNewFile,BufRead *.js set textwidth=79
au BufNewFile,BufRead *.js set expandtab 

au BufNewFile,BufRead *.php set tabstop=2
au BufNewFile,BufRead *.php set softtabstop=2
au BufNewFile,BufRead *.php set shiftwidth=2
au BufNewFile,BufRead *.php set  autoindent
au BufNewFile         *.php set fileformat=unix 
au BufNewFile,BufRead *.php set textwidth=79
au BufNewFile,BufRead *.php set expandtab 

au BufNewFile,BufRead *.txt set tabstop=2
au BufNewFile,BufRead *.txt set softtabstop=2
au BufNewFile,BufRead *.txt set shiftwidth=2
au BufNewFile,BufRead *.txt set  autoindent
au BufNewFile         *.txt set fileformat=unix 
au BufNewFile,BufRead *.txt set textwidth=79
au BufNewFile,BufRead *.txt set expandtab 

au BufNewFile,BufRead *.json set tabstop=2
au BufNewFile,BufRead *.json set softtabstop=2
au BufNewFile,BufRead *.json set shiftwidth=2
au BufNewFile,BufRead *.json set  autoindent
au BufNewFile         *.json set fileformat=unix 
au BufNewFile,BufRead *.json set textwidth=79
au BufNewFile,BufRead *.json set expandtab 

au BufNewFile,BufRead *.sql set tabstop=2
au BufNewFile,BufRead *.sql set softtabstop=2
au BufNewFile,BufRead *.sql set shiftwidth=2
au BufNewFile,BufRead *.sql set  autoindent
au BufNewFile         *.sql set fileformat=unix 
au BufNewFile,BufRead *.sql set textwidth=79
au BufNewFile,BufRead *.sql set expandtab 

set encoding=utf-8

" no temp or backup files
set noswapfile
set nobackup
set nowritebackup

let python_highlight_all=1
syntax on
set nu
set showmatch
"#set cursorline
set autoindent
set ruler

"call plug#begin('~/.vim/colors')
"Plug 'agude/vim-eldar'
"call plug#end()

colo monokai 

set term=xterm-256color