Created
August 5, 2020 13:50
-
-
Save SanthoshRaju91/7ecf0054e85b31fe438edf9e0504d52b to your computer and use it in GitHub Desktop.
vimrc configuration
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
syntax on " enable syntax highlighting | |
set cursorline " highlight the current line | |
" set background=dark " darker color scheme | |
" set ruler " show line number in bar | |
set nobackup " don't create pointless backup files; Use VCS instead | |
set autoread " watch for file changes | |
set number " show line numbers | |
set showcmd " show selection metadata | |
set showmode " show INSERT, VISUAL, etc. mode | |
set showmatch " show matching brackets | |
set autoindent smartindent " auto/smart indent | |
set smarttab " better backspace and tab functionality | |
set scrolloff=5 " show at least 5 lines above/below | |
filetype on " enable filetype detection | |
filetype indent on " enable filetype-specific indenting | |
filetype plugin on " enable filetype-specific plugins | |
" colorscheme cobalt " requires cobalt.vim to be in ~/.vim/colors | |
" column-width visual indication | |
let &colorcolumn=join(range(81,999),",") | |
highlight ColorColumn ctermbg=235 guibg=#001D2F | |
" tabs and indenting | |
set autoindent " auto indenting | |
set smartindent " smart indenting | |
set expandtab " spaces instead of tabs | |
set tabstop=2 " 2 spaces for tabs | |
set shiftwidth=2 " 2 spaces for indentation | |
" bells | |
set noerrorbells " turn off audio bell | |
set visualbell " but leave on a visual bell | |
" search | |
set hlsearch " highlighted search results | |
set showmatch " show matching bracket | |
" other | |
set guioptions=aAace " don't show scrollbar in MacVim | |
" call pathogen#infect() " use pathogen | |
" clipboard | |
set clipboard=unnamed " allow yy, etc. to interact with OS X clipboard | |
" shortcuts | |
map <F2> :NERDTreeToggle<CR> | |
" remapped keys | |
inoremap { {}<Left> | |
inoremap {<CR> {<CR>}<Esc>O | |
inoremap {{ { | |
inoremap {} {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment