Skip to content

Instantly share code, notes, and snippets.

@RinorDreshaj
Created September 15, 2016 12:39
Show Gist options
  • Save RinorDreshaj/31fba17da7e7588f488035141f7d9b3f to your computer and use it in GitHub Desktop.
Save RinorDreshaj/31fba17da7e7588f488035141f7d9b3f to your computer and use it in GitHub Desktop.
My vimrc file
set nocompatible "We want the latest Vim settings/options
so ~/.vim/plugins.vim "Include plugins for vundle PluginInstall
syntax enable
set backspace=indent,eol,start "Make backspace behave like every other editor
let mapleader=',' "The defaulet leader is \, but comma is much better
set complete=.,w,b,u "Set our desired autocompletion"
"----------------VISUALS---------------"
set background=light
colorscheme atom-dark
set guifont=OPERATOR_MONO_LIGHT:h14
set macligatures "We want pretty symbols when available
set guioptions-=e
set linespace=15 "Macvim specific line height
set number "Let's activate line numbers
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
"----------------SEARCH---------------"
set hlsearch
set incsearch
"---------------WINDOW-SPLITS--------------"
set splitbelow
set splitright
nmap <C-J> <C-W><C-J>
nmap <C-K> <C-W><C-K>
nmap <C-H> <C-W><C-H>
nmap <C-L> <C-W><C-L>
"---------------MAPPINGS--------------"
"Make it easy to edit the vimrcfile
nmap <Leader>ev :tabedit $MYVIMRC<cr>
"Add search highlight removal.
nmap <Leader><space> :nohlsearch<cr>
nmap <D-1> :NERDTreeToggle<cr>
nmap <D-r> :CtrlPBufTag<cr>
nmap <D-e> :CtrlPMRUFiles<cr>
"---------------PLUGINS-CONFIG----------"
let g:ctrpl_custom_ignore = 'node_modules\DS_Store\|git'
let g:ctrpl_match_window = 'bottom,order:btt,min:1,max:30,results:30'
"---------------PLUGINS-NEDRTREE----------"
let NERDTreeHijackNetrw = 0
"---------------AUTO-COMMANDS----------"
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