URI:
       vimrc - dotfiles - dark dots
  HTML git clone https://git.drkhsh.at/dotfiles
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
       vimrc (1897B)
       ---
            1 " ██╗   ██╗██╗███╗   ███╗██████╗  ██████╗
            2 " ██║   ██║██║████╗ ████║██╔══██╗██╔════╝
            3 " ██║   ██║██║██╔████╔██║██████╔╝██║
            4 " ╚██╗ ██╔╝██║██║╚██╔╝██║██╔══██╗██║
            5 "  ╚████╔╝ ██║██║ ╚═╝ ██║██║  ██║╚██████╗
            6 "    ╚═══╝  ╚═╝╚═╝     ╚═╝╚═╝  ╚═╝ ╚═════╝
            7 "                   drkhsh <me@drkhsh.at>
            8 
            9 set encoding=utf8
           10 set modelines=0 " sec
           11 set title
           12 
           13 " clean home
           14 set viminfo+=n~/.local/share/viminfo
           15 
           16 " tabs
           17 set tabstop=4 " a tab is 4 spaces wide
           18 set shiftwidth=0 " use value of tabstop
           19 set smarttab " neovim has this as default
           20 
           21 " indentation
           22 filetype plugin indent on
           23 set autoindent " automatically indent
           24 set smartindent
           25 set copyindent " preserve previous indentation
           26 set preserveindent
           27 if exists("+breakindent")
           28         set breakindent
           29 endif
           30 
           31 " search
           32 set incsearch
           33 set hlsearch
           34 
           35 " case-insensitive
           36 set ignorecase
           37 set smartcase
           38 set infercase
           39 
           40 " backspace/cursor keys wrap to previous/next line
           41 set backspace=indent,eol,start
           42 set whichwrap+=<,>,[,],h,l
           43 
           44 " show matching brackets/parenthesis
           45 set showmatch
           46 
           47 " x11 clipboard
           48 set clipboard=unnamedplus
           49 
           50 " 80 character width
           51 set textwidth=80
           52 
           53 " ui
           54 set nonumber " no line numbers
           55 set cursorline " highlight cursor
           56 set ruler " position
           57 set wildmenu
           58 
           59 " enable mouse support
           60 set mouse=a
           61 
           62 " colors
           63 syntax enable
           64 set t_Co=256
           65 set background=dark
           66 set termguicolors
           67 set synmaxcol=512
           68 
           69 set guifont=Terminus\ 12
           70 
           71 "▓▒░ include local config
           72 function! SourceIfExists(file)
           73         if filereadable(expand(a:file))
           74                 exe 'source' a:file
           75         endif
           76 endfunction
           77 call SourceIfExists("~/.config/vim/vimrc.local")