2012-11-21 13:58:48 +01:00
|
|
|
|
version 7.3
|
|
|
|
|
|
|
|
|
|
syntax on
|
2012-11-21 14:47:23 +01:00
|
|
|
|
set encoding=utf-8
|
2013-02-21 16:57:50 +01:00
|
|
|
|
set background=light
|
2012-11-21 13:58:48 +01:00
|
|
|
|
colorscheme solarized
|
|
|
|
|
hi BadWhitespace ctermbg=red guibg=red
|
|
|
|
|
|
2012-11-21 14:47:23 +01:00
|
|
|
|
let g:Powerline_symbols='fancy'
|
2012-11-21 13:58:48 +01:00
|
|
|
|
|
|
|
|
|
set gdefault
|
|
|
|
|
set nobackup
|
|
|
|
|
set nodigraph
|
|
|
|
|
set incsearch
|
|
|
|
|
set nohlsearch
|
|
|
|
|
set nojoinspaces
|
|
|
|
|
set nocompatible
|
|
|
|
|
set nowritebackup
|
|
|
|
|
|
|
|
|
|
set title
|
|
|
|
|
set number
|
|
|
|
|
set showcmd "show combo command as you type it in the bottom right corner
|
|
|
|
|
set showmode "show what mode you're in (Insert, Replace, Visual, etc.)
|
|
|
|
|
set ruler laststatus=2 "show rulers for buffers and the status line even if there's only 1 file
|
|
|
|
|
set clipboard+=unnamed "the same clipboard is used for Visual mode
|
|
|
|
|
set ignorecase smartcase "when searching, match case only when at least one char is upper
|
|
|
|
|
set backspace=eol,start,indent "make backspace work between lines and with indentation
|
|
|
|
|
set winminheight=0 "Allow windows to get fully squashed
|
|
|
|
|
set scrolloff=5 "start scrolling 10 lines before the end of the buffer
|
|
|
|
|
set cursorline "highlight current line
|
|
|
|
|
set cursorcolumn "highlight current column
|
|
|
|
|
|
2013-01-15 15:59:22 +01:00
|
|
|
|
set shiftwidth=2 tabstop=2 softtabstop=2 expandtab "by default, Tab moves by 2 spaces
|
2012-11-21 13:58:48 +01:00
|
|
|
|
set shiftround "tabbing and detabbing also uses shiftwidth
|
|
|
|
|
set autoindent "keep current indent state when starting a new line
|
|
|
|
|
set matchpairs+=(:),{:},[:],<:>,':',":" "join these pairs of characters; useful for highlighting and jumping between with %
|
|
|
|
|
|
|
|
|
|
set bs=2
|
|
|
|
|
|
|
|
|
|
nmap <tab> w
|
|
|
|
|
nmap
:wq!
|
|
|
|
|
imap <BS>
|
|
|
|
|
|
|
|
|
|
map <leader>b <Esc>:set cc=79<CR>
|
|
|
|
|
map <leader>nb <Esc>:set cc=0<CR>
|
|
|
|
|
map <leader>n <Esc>:set nonumber!<CR>
|
|
|
|
|
map <leader>\ <Esc>:setlocal nospell<CR>
|
|
|
|
|
map <leader>pl <Esc>:setlocal spell spelllang=pl<CR>
|
|
|
|
|
map <leader>en <Esc>:setlocal spell spelllang=en_gb<CR>
|
|
|
|
|
map <leader>p <Esc>:set paste!<CR>
|
|
|
|
|
map <F2> :NERDTreeToggle<CR>
|
|
|
|
|
|
|
|
|
|
call pathogen#runtime_append_all_bundles()
|
|
|
|
|
|
|
|
|
|
nnoremap n nzzzv
|
|
|
|
|
nnoremap N Nzzzv¬
|
|
|
|
|
|
|
|
|
|
au BufRead,BufNewFile *.pp
|
|
|
|
|
\ set filetype=puppet
|
|
|
|
|
au BufRead,BufNewFile *_spec.rb
|
|
|
|
|
\ nmap <F8> :!rspec --color %<CR>
|
|
|
|
|
filetype plugin indent on
|