dotfiles/vim/rcfiles/vimrc

71 lines
2.1 KiB
VimL
Raw Normal View History

2016-03-11 10:54:15 +01:00
version 7.4
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-03-11 15:06:17 +01:00
colorscheme gruvbox
2012-11-21 13:58:48 +01:00
hi BadWhitespace ctermbg=red guibg=red
2016-03-11 15:06:17 +01: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
2016-06-09 11:40:26 +02:00
"set showcmd "show combo command as you type it in the bottom right corner
set noshowmode "don't show what mode
2012-11-21 13:58:48 +01:00
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!
2016-06-09 11:40:26 +02:00
nmap  <BS>
2012-11-21 13:58:48 +01:00
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
2016-06-09 11:40:26 +02:00
\ set filetype=puppet
2016-03-11 14:52:02 +01:00
filetype plugin indent on
2013-08-12 13:27:25 +02:00
exec "set listchars=tab:\uBB\uBB,trail:\uB7,nbsp:~"
set list
2016-06-09 11:40:26 +02:00
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
let g:airline_theme='powerlineish'
let g:airline#extensions#tabline#left_sep = ''
let g:airline#extensions#tabline#left_alt_sep = ''
let g:airline#extensions#tabline#right_sep = ''
let g:airline#extensions#tabline#right_alt_sep = ''