2013-10-26 08:07:26 +01:00
|
|
|
" file settings
|
|
|
|
set noswapfile
|
|
|
|
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
|
2013-10-26 07:43:09 +01:00
|
|
|
let g:airline#extensions#tabline#enabled = 1
|
2013-10-26 07:48:07 +01:00
|
|
|
|
2013-10-26 08:07:26 +01:00
|
|
|
|
|
|
|
" appearance
|
|
|
|
set relativenumber
|
|
|
|
set laststatus=2
|
|
|
|
set noshowmode
|
|
|
|
set showtabline=1 "only show tabline when more than 1 tab
|
2013-10-26 07:48:07 +01:00
|
|
|
|