vimrc

My Note

  • Super simple .vimrc
vim
filetype indent plugin on
set encoding=utf-8
scriptencoding utf-8

if !exists('g:syntax_on')
    syntax enable
endif

let g:mapleader = "\<Space>"

colorscheme elflord

" STATUSLINE
set laststatus=2
set statusline=
set statusline+=\ %F
set statusline+=\ %m

" NETRW
let g:netrw_liststyle = 3
let g:netrw_banner = 0
let g:netrw_browse_split = 1
let g:netrw_winsize = 20
let g:netrw_altv = 1

" CORE SETTINGS
set noruler
set number
set relativenumber
set noshowmode
set noshowcmd
set backspace=indent,eol,start
set history=100
set hidden
set wildmenu
set mouse=a
set scrolloff=3
set lazyredraw
set autowrite
set showmatch

" BACKUPS
set noswapfile
set nobackup
set nowritebackup

" INDENTATION
set autoindent
set tabstop=4
set shiftwidth=4
set expandtab
set wrap

" SEARCH
set incsearch
set hlsearch
set ignorecase
set smartcase

" KEY MAPPINGS
nnoremap <leader>s :%s/
nnoremap <silent> <BS> :nohlsearch<CR>
nnoremap <leader>w :w!<CR>
nnoremap <leader>q :q!<CR>