aboutsummaryrefslogblamecommitdiffstats
path: root/vim/min-vim
blob: edfe77084f69710367b24cd21c4e5d9bc9932292 (plain) (tree)
1
2
3
4
5
6
7
8
9







                         
         














                               
              





                                                                      
            



                
                








                 
                

             
                



                                                  
           



                   
                              
                               



                          


                








                                                                 

                                                             



                                                                       












                                                       
 
filetype plugin on
filetype plugin indent on

"source ~/.vim/grep.vim

let maplocalleader = "\\"
let mapleader = ","

syntax on
set autoread
set foldmethod=manual
set autowrite
set backspace=indent,eol,start
"set colorcolumn=80
"set cursorline
set completeopt=menuone,longest
set display=truncate
set equalalways
set fileformat=unix
set hidden
set history=1000
set ignorecase
set incsearch
set infercase
set lazyredraw
set laststatus=2
"set list
set listchars=nbsp:%,tab:▸\ ,trail:_,eol:¬,precedes:←,extends:→
set matchtime=8
set nobackup
set nocompatible
set hlsearch
set nojoinspaces
set nomodeline
set noshelltemp
set noswapfile
set nocursorline
set noundofile
set nowritebackup
set path+=**
set report=0
set ruler
set scrolloff=5
set shell=bash
set shortmess+=c
set showcmd
"set showbreak=\
set showmatch
set showmode
set laststatus=0
set signcolumn=number
set splitright
set tabstop=4 softtabstop=4 shiftwidth=4 expandtab
set ttimeout
set ttyfast
set ttimeoutlen=100
"set viminfo=
set wildmenu
set wildoptions=pum
set wildmode=longest:full,full
set wildignore=**/__pycache*/**
set undodir=$HOME/.vimundo
set undofile
set undolevels=999
set undoreload=10000
set wrap
packadd! matchit

" highlight spaces at the end of line
highlight WhiteSpaceEOL ctermbg=darkgreen
match WhiteSpaceEOL /\s$/
autocmd WinEnter * match WhiteSpaceEOL /\s$/

" after you paste something, press gb to select it in visual mode
" so that you could format it or do something else
nnoremap <expr> gb '`[' . strpart(getregtype(), 0, 1) . '`]'

nnoremap <leader>ev <C-w>s<C-w>j<C-w>L:e $HOME/.vim/vimrc<cr>

nnoremap <C-l> :nohl<CR><C-L>

cnoreabbrev w!! w !sudo tee > /dev/null %|       " write file with sudo

command! W w

if executable('rg')
    set grepprg=rg\ --color=never\ --vimgrep
endif

augroup textfiles
  autocmd!
  autocmd filetype markdown setlocal spell spelllang=en
augroup end

set background=dark
colorscheme koehler