Files
dotfiles/vim/.vimrc
2021-04-03 22:27:12 +02:00

58 lines
1.3 KiB
VimL
Executable File

if ($TERM=~"xterm-256color" || $TERM=~"screen-256color")
call plug#begin('~/.vim/plugged')
Plug 'flexo3001/vim-colors-solarized'
Plug 'mhinz/vim-signify'
" language plugins
Plug 'neovimhaskell/haskell-vim'
Plug 'pearofducks/ansible-vim'
call plug#end()
colorscheme solarized
set background=light
endif
filetype plugin indent on
set autoindent
set autoread
set autowrite
set expandtab
set hidden
set ignorecase
set incsearch
set laststatus=2
set linebreak
set list listchars=trail,tab:▸\ ,eol
set mouse=a
set nofoldenable
set nojoinspaces
set number
set printoptions=paper:A4,syntax:n,number:y
set shiftwidth=4
set showbreak=↪\
set statusline=\(%n\)\ %<%.99f\ %y%w%m%r%=%-14.(%l,%c%V%)\ %P
set tabstop=4
set textwidth=120
set wrapscan
let mapleader=" "
let maplocalleader=" "
nnoremap <silent> <esc><esc> :nohls<CR>
nnoremap <silent> gB :bp<CR>
nnoremap <silent> gb :bn<CR>
"noremap p p`[
"noremap P P`[
augroup vimrc
autocmd!
autocmd BufNewFile,BufRead *.pdc,*.pandoc setlocal filetype=markdown
autocmd BufNewFile,BufRead Vagrantfile setlocal filetype=ruby
autocmd FileType puppet setlocal tw=140
autocmd FileType ruby,yaml setlocal sw=2
autocmd FileType go setlocal noexpandtab sw=8 ts=8
augroup END