dotfiles/.vimrc

59 lines
1 KiB
VimL
Raw Normal View History

2015-03-16 06:00:25 +00:00
" global settings
set nocompatible
2013-10-26 08:07:26 +01:00
set noswapfile
2015-03-16 06:00:25 +00:00
set undofile
set undodir=$HOME/.vim/undo
" file settings
2013-10-26 08:07:26 +01:00
set encoding=utf-8
2013-10-09 09:59:38 +01:00
2013-11-27 17:38:14 +00:00
" key mappings
let mapleader = ","
2013-10-26 15:55:11 +01:00
nmap <leader>p :set paste!<CR>
2013-11-15 20:35:40 +00:00
nmap <leader>h :set hlsearch!<CR>
2013-11-27 17:38:14 +00:00
nnoremap ; :
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
2013-11-15 20:35:40 +00:00
2013-10-26 08:07:26 +01:00
" special chars
nmap <leader>l :set list!<CR>
set listchars=tab:▸\ ,eol
highlight NonText guifg=#4a4a59
highlight SpecialKey guifg=#4a4a59
" tabs and spaces
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
2013-10-09 13:13:37 +01:00
2013-10-26 08:07:26 +01:00
" plugins
2013-10-09 13:13:37 +01:00
execute pathogen#infect()
filetype plugin indent on
2013-10-25 21:46:59 +01:00
2013-10-26 08:23:08 +01:00
" colours [need pathogen]
set t_Co=256
syntax enable
set background=dark
2013-10-26 08:59:45 +01:00
highlight clear SignColumn
2013-10-26 08:23:08 +01:00
colorscheme solarized
2013-10-26 08:07:26 +01:00
" plugins: airline
2013-10-25 21:46:59 +01:00
let g:bufferline_echo = 0
2013-10-25 22:00:21 +01:00
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
2013-10-26 08:07:26 +01:00
" appearance
2014-11-15 13:20:41 +00:00
set number
2013-10-26 08:07:26 +01:00
set relativenumber
set laststatus=2
set noshowmode
set showtabline=1 "only show tabline when more than 1 tab
2014-02-11 14:17:04 +00:00
" vimdiff
set diffopt+=iwhite
set diffexpr=""