2015-04-11 20:14:53 +00:00
|
|
|
"========================"
|
|
|
|
" vimrc file for niblock "
|
|
|
|
"========================"
|
|
|
|
|
|
|
|
" +++ Settings +++
|
|
|
|
|
|
|
|
" https://stackoverflow.com/questions/5845557/in-a-vimrc-is-set-nocompatible-completely-useless
|
|
|
|
set nocompatible
|
|
|
|
|
2015-10-21 01:06:47 +00:00
|
|
|
" Map Leader key
|
|
|
|
let mapleader = ","
|
|
|
|
|
2015-04-11 20:14:53 +00:00
|
|
|
" Shows you which commands you're typing
|
|
|
|
set showcmd
|
|
|
|
|
|
|
|
" Enables addons via Pathogen
|
|
|
|
" Add-ons go in ~/.vim/bundle/
|
2015-04-14 20:13:23 +00:00
|
|
|
runtime bundle/vim-pathogen/autoload/pathogen.vim
|
2015-04-11 20:14:53 +00:00
|
|
|
execute pathogen#infect()
|
|
|
|
|
2015-06-27 20:12:05 +00:00
|
|
|
" Airline configuration
|
|
|
|
set laststatus=2
|
|
|
|
let g:airline_powerline_fonts = 1
|
|
|
|
|
2015-04-11 20:14:53 +00:00
|
|
|
" Necessary for Syntax hilighting
|
|
|
|
syntax on
|
|
|
|
filetype plugin indent on
|
|
|
|
|
|
|
|
" Enable line numbers
|
|
|
|
set number
|
|
|
|
|
|
|
|
" Indendation modifications
|
|
|
|
" Auto indent; set spacing; use spaces
|
|
|
|
set autoindent
|
|
|
|
set expandtab
|
|
|
|
set smarttab
|
|
|
|
set shiftwidth=5
|
|
|
|
set softtabstop=5
|
|
|
|
|
|
|
|
" Spacing
|
|
|
|
" Set width; word wrap; scroll mods
|
|
|
|
set scrolloff=5
|
|
|
|
set tw=80
|
|
|
|
set wrap
|
|
|
|
|
|
|
|
" Enable auto-completion for vim commands
|
|
|
|
" :help wildmode and :help wildmenu for details
|
|
|
|
set wildmenu
|
|
|
|
set wildmode:longest:full,full
|
|
|
|
|
|
|
|
" Search modifications
|
|
|
|
" Incremental search; search hilighting
|
|
|
|
set incsearch
|
|
|
|
set hlsearch
|
|
|
|
|
|
|
|
" Set color scheme... duh...
|
|
|
|
colorscheme desert
|
|
|
|
|
|
|
|
" +++ Mappings +++
|
|
|
|
|
|
|
|
nmap <silent> <A-Up> :wincmd k<CR>
|
|
|
|
nmap <silent> <A-Down> :wincmd j<CR>
|
|
|
|
nmap <silent> <A-Left> :wincmd h<CR>
|
|
|
|
nmap <silent> <A-Right> :wincmd l<CR>
|
2015-05-24 19:40:04 +00:00
|
|
|
" Allow saving of files as sudo when I forgot to start vim using sudo.
|
|
|
|
cmap w!! w !sudo tee > /dev/null %
|