Skip to content

Instantly share code, notes, and snippets.

@preshetin
Created September 26, 2017 09:35
Show Gist options
  • Save preshetin/d738cba49336a6bfbd66e4fea50a7939 to your computer and use it in GitHub Desktop.
Save preshetin/d738cba49336a6bfbd66e4fea50a7939 to your computer and use it in GitHub Desktop.
My .vimrc
syntax enable
let mapleader = ',' "The default leader is \, but the comma is much better"
set number "turn on line numbers"
"-------------Visuals---------------"
colorscheme atom-dark
set guifont=Fira_Code:h13
set linespace=15
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
set linespace=25
"-------------Search----------------"
set hlsearch "Hilight search"
set incsearch
"-----------------Mappings------------"
"Make it easy to edit .vimrc file"
nmap <Leader>ev :tabedit $MYVIMRC<cr>
"Add simple hilight search removal"
nmap <Leader><space> :nohlsearch<cr>
"Go to previous/next line when pressing left at beggining of line/right at end of previous line"
set whichwrap+=>,l
set whichwrap+=<,h
"-----------------Auto-Commands------------"
"Auto sourse .vimrc file on save"
augroup autosourcing
autocmd!
autocmd BufWritePost .vimrc source %
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment