Skip to content

Instantly share code, notes, and snippets.

@luvpreetsingh
Created April 2, 2019 12:55
Show Gist options
  • Select an option

  • Save luvpreetsingh/514f971f867542d82dd4fe7e0885162d to your computer and use it in GitHub Desktop.

Select an option

Save luvpreetsingh/514f971f867542d82dd4fe7e0885162d to your computer and use it in GitHub Desktop.

Revisions

  1. luvpreetsingh created this gist Apr 2, 2019.
    48 changes: 48 additions & 0 deletions vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,48 @@
    " enable syntax highlight
    syntax enable

    " set tabs to have 4 spaces
    set ts=4

    " indent when moving to the next line while writing code
    set autoindent

    " convert tabs into spaces
    set expandtab

    " show a visual line under the cursor's current line
    set cursorline

    " show the matching part of the pair for [] {} and ()
    set showmatch

    " highlight search results
    set hlsearch

    " show row and column information
    set ruler

    " show which mode we are in
    set showmode

    set showcmd

    " mac color scheme
    if has("mac") || has("macunix")
    set gfn=IBM\ Plex\ Mono:h14,Hack:h14,Source\ Code\ Pro:h15,Menlo:h15
    endif

    " colorscheme
    set background=dark"

    PYTHON SETTINGS
    " enable all Python syntax highlighting features
    let python_highlight_all = 1
    " end of python settings

    " key mapping for switching tabs
    nnoremap <C-Left> :tabprevious<CR>
    nnoremap <C-Right> :tabnext<CR>
    " include following files
    so ~/.vim/plugins.vim