set title set number set gdefault set wildmenu set nobackup set incsearch set expandtab set smartcase set ignorecase set nohlsearch set noshowmode set autoindent set shiftround set cursorline set cursorcolumn set nojoinspaces set nowritebackup set bs=2 set shell=sh set tabstop=2 set scrolloff=5 set laststatus=2 set shiftwidth=2 set softtabstop=2 set winminheight=0 set backspace=eol,start,indent set matchpairs+=(:),{:},[:],<:>,':',":" nmap w nmap :wq! nmap :Files map b :set cc=79 map nb :set cc=0 map n :set nonumber! map \ :setlocal nospell map pl :setlocal spell spelllang=pl map en :setlocal spell spelllang=en_gb map p :set paste! map g :Gstatus map gc :Gcommit map gp :Gpush au BufRead,BufNewFile *.pp \ set filetype=puppet filetype plugin indent on call plug#begin('~/.config/vim-plugins') Plug 'godlygeek/tabular' Plug 'tpope/vim-fugitive' Plug 'scrooloose/syntastic' Plug 'edkolev/tmuxline.vim' Plug 'itchyny/lightline.vim' Plug 'bitc/vim-bad-whitespace' Plug '/usr/local/opt/fzf' Plug 'junegunn/fzf.vim' Plug 'fatih/molokai' call plug#end() syntax on colorscheme molokai let g:rehash256=1 set background=dark hi BadWhitespace ctermbg=lightblue guibg=lightblue if has("gui_macvim") set guioptions-=e set guioptions-=r set guioptions-=L set guifont=Hack:h13 endif command! -bang -nargs=? -complete=dir Files \ call fzf#vim#files(, {'options': ['-e', '--layout=reverse', '--height=80%', '--preview', 'bat --color=always --tabs=2 --style=plain --theme="Monokai Extended" {}']}, 0) let g:syntastic_auto_jump = 1 let g:syntastic_enable_signs = 1 let g:syntastic_auto_loc_list = 1 let g:syntastic_puppet_puppetlint_args = "--no-80chars-check --no-autoloader_layout-check --no-nested_classes_or_defines-check --no-only_variable_string-check" let g:lightline = { \ 'active': { \ 'left': [ [ 'mode', 'paste' ], \ [ 'fugitive', 'readonly', 'filename', 'modified' ] ], \ 'right': [ [ 'lineinfo' ], \ [ 'percent' ], \ [ 'fileencoding' ] ] \ }, \ 'component_function': { \ 'fugitive': 'LightLineFugitive', \ 'readonly': 'LightLineReadonly', \ 'modified': 'LightLineModified' \ }, \ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" }, \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" }, \ 'tabline_separator': { 'left': "\ue0b0", 'right': "\ue0b2" }, \ 'tabline_subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" } \ } function! LightLineModified() if &filetype == "help" return "" elseif &modified return "+" elseif &modifiable return "" else return "" endif endfunction function! LightLineReadonly() if &filetype == "help" || &filetype == "gitcommit" return "" elseif &readonly return "" else return "" endif endfunction function! LightLineFugitive() return exists('*fugitive#head') ? fugitive#head() : '' endfunction