Last active
May 18, 2018 16:22
-
-
Save moaalaa/9723c3fac9b727f47e58afa2fb9afe2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " We ant latest vim settings/options. | |
so ~/.vim/plugins.vim | |
syntax enable | |
set backspace=indent,eol,start "Make Backspace behave like every other editors. | |
let mapleader = ',' "The defualt leader is \, but , is much better. | |
set number "Let's activate the line number. | |
"-----------------------Visuals------------------------" | |
colorscheme onedark | |
set t_CO=256 "Use 256 colors. this is useful for terminal vim. | |
set guifont=Fira_Code:h11 | |
set linespace=15 | |
set guioptions-=l | |
set guioptions-=L | |
set guioptions-=m | |
set guioptions-=r | |
set guioptions-=R | |
set guioptions-=T | |
"---------------------Split Managment----------------" | |
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> | |
"-----------------------Searching----------------------" | |
set hlsearch | |
set incsearch | |
"-----------------------Mappings----------------------" | |
"Make it easy to edit the vimrc file. | |
nmap <leader>ev :tabedit $MYVIMRC<cr> | |
"Add simple heighlight removal. | |
nmap <leader><space> :nohlsearch<cr> | |
"Make NERDTree Easier To Toggle. | |
nmap <C-\> :NERDTreeToggle<cr> | |
"Make CtrlP Easier To Toggle. | |
nmap <C-P> :CtrlP<cr> | |
"-----------------------Auto-Commands----------------------" | |
" Automaticlly save the Vimrc file on save. | |
augroup autosourcing | |
autocmd! | |
autocmd BufWritePost .vimrc source % | |
augroup END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'tpope/vim-vinegar' | |
Plugin 'joshdick/onedark.vim' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'kien/ctrlp.vim' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment