Created
October 3, 2017 16:50
-
-
Save ahaider3/e0a704fed71124ff92373855fc7d18f7 to your computer and use it in GitHub Desktop.
my_vimrc
This file contains hidden or 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
" Adnan Haider | |
" Colors {{{ | |
syntax enable " enable syntax processing | |
" }}} | |
" Misc {{{ | |
set backspace=indent,eol,start | |
let g:vimwiki_list = [{'path': '~/.wiki/'}] | |
" }}} | |
" Spaces & Tabs {{{ | |
set tabstop=2 " 4 space tab | |
set expandtab " use spaces for tabs | |
set softtabstop=2 " 4 space tab | |
set shiftwidth=2 | |
set modelines=1 | |
filetype indent on | |
filetype plugin on | |
set autoindent | |
" }}} | |
" UI Layout {{{ | |
set number " show line numbers | |
set showcmd " show command in bottom bar | |
set cursorline " highlight current line | |
set wildmenu | |
set lazyredraw | |
set showmatch " higlight matching parenthesis | |
set fillchars+=vert:┃ | |
" }}} | |
" Searching {{{ | |
set ignorecase " ignore case when searching | |
set incsearch " search as characters are entered | |
set hlsearch " highlight all matches | |
" }}} | |
" Folding {{{ | |
"=== folding === | |
set foldmethod=indent " fold based on indent level | |
set foldnestmax=10 " max 10 depth | |
set foldenable " don't fold files by default on open | |
nnoremap <space> za | |
set foldlevelstart=10 " start with fold level of 1 | |
" }}} | |
execute pathogen#infect() | |
call pathogen#helptags() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment