dotfiles

Configs for programs I use!
git clone git://shipwreckt.co.uk/dotfiles.git
Log | Files | Refs | README | LICENSE

init.vim (772B)


      1 syntax on
      2 
      3 " Sets file format and encoding
      4 set fileformat=unix
      5 set encoding=UTF-8
      6 
      7 " Highlights the current line
      8 highlight CursorLine guibg=#5f0087
      9 set cursorline
     10 
     11 " Enable search highlighting
     12 set hlsearch
     13 
     14 " Show the status bar
     15 set laststatus=2
     16 
     17 " Tab and indentation settings
     18 set tabstop=2
     19 set softtabstop=2
     20 set shiftwidth=2
     21 set expandtab
     22 set autoindent
     23 set smartindent
     24 set smarttab
     25 
     26 " Line numbering
     27 set number
     28 set relativenumber
     29 
     30 " Keep 8 lines visible above/below the cursor when scrolling
     31 set scrolloff=8
     32 
     33 " Improved split navigation
     34 nnoremap <C-h> <C-w>h
     35 nnoremap <C-j> <C-w>j
     36 nnoremap <C-k> <C-w>k
     37 nnoremap <C-l> <C-w>l
     38 
     39 augroup reload_vimrc
     40   autocmd!
     41   autocmd BufWritePost init.vim source $MYVIMRC
     42 augroup END
     43 
     44 " Use system clipboard
     45 set clipboard=unnamedplus
     46