dotfiles/vim/rcfiles/vimrc

66 lines
2.0 KiB
VimL
Raw Normal View History

2013-06-11 15:04:56 +02:00
version 7.3.754
2012-11-21 13:58:48 +01:00
syntax on
2012-11-21 14:47:23 +01:00
set encoding=utf-8
2013-06-11 15:04:56 +02:00
set background=dark
2016-01-28 15:53:16 +01:00
colorscheme solarized
2012-11-21 13:58:48 +01:00
hi BadWhitespace ctermbg=red guibg=red
2013-08-12 13:34:23 +02:00
set t_Co=256
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
2013-08-12 13:27:25 +02:00
"====[ Make tabs, trailing whitespace, and non-breaking spaces visible ]======
exec "set listchars=tab:\uBB\uBB,trail:\uB7,nbsp:~"
set list