Skip to content

Instantly share code, notes, and snippets.

@kaustavdm
Last active December 22, 2015 18:28
Show Gist options
  • Save kaustavdm/b97771dafedb0914721d to your computer and use it in GitHub Desktop.
Save kaustavdm/b97771dafedb0914721d to your computer and use it in GitHub Desktop.
Kaustav's .vimrc
" Kaustav's .vimrc
" Colorscheme
syntax enable
colorscheme monokai
let g:monokai_italic=1
let g:monokai_thick_border=1
" Tab related settings
set tabstop=4
set softtabstop=4
set expandtab
" UI Config
set number
set showcmd
set cursorline
filetype indent on
set wildmenu
set lazyredraw
set showmatch
set modelines=1
" Search
set incsearch
set hlsearch
" Code related
set foldenable
set foldlevelstart=10
set foldnestmax=10
set foldmethod=indent
nnoremap <space> za
" move vertically by visual line
nnoremap j gj
nnoremap k gk
" move to beginning/end of line
nnoremap B ^
nnoremap E $
" toggle gundo
nnoremap <leader>u :GundoToggle<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment