Skip to content

Instantly share code, notes, and snippets.

@barrysteyn
Last active December 27, 2015 04:58
Show Gist options
  • Select an option

  • Save barrysteyn/7270209 to your computer and use it in GitHub Desktop.

Select an option

Save barrysteyn/7270209 to your computer and use it in GitHub Desktop.

Revisions

  1. barrysteyn revised this gist Dec 9, 2013. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions .README.md
    Original file line number Diff line number Diff line change
    @@ -9,8 +9,7 @@ Useful Commands
    ---------------

    ### Navigation
    *. ````` `` ````` (double backtick) - will take you back and forth in history
    *. `ctrl p ` - allows one to search for files easily
    *.
    * ````` `` ````` (double backtick) - will take you back and forth in history
    * `ctrl p ` - allows one to search for files easily

    ###
  2. barrysteyn revised this gist Dec 9, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .README.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ Useful Commands
    ---------------

    ### Navigation
    *. ````` `` `````` (double backtick) - will take you back and forth in history
    *. ````` `` ````` (double backtick) - will take you back and forth in history
    *. `ctrl p ` - allows one to search for files easily
    *.

  3. barrysteyn revised this gist Dec 9, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .README.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ Useful Commands
    ---------------

    ### Navigation
    *. ` `` ` (double backtick) - will take you back and forth in history
    *. ````` `` `````` (double backtick) - will take you back and forth in history
    *. `ctrl p ` - allows one to search for files easily
    *.

  4. barrysteyn revised this gist Dec 9, 2013. 1 changed file with 12 additions and 1 deletion.
    13 changes: 12 additions & 1 deletion .README.md
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,15 @@ VIM
    ===

    Setup
    -----
    -----
    Copy the `.vimrc` file below

    Useful Commands
    ---------------

    ### Navigation
    *. ` `` ` (double backtick) - will take you back and forth in history
    *. `ctrl p ` - allows one to search for files easily
    *.

    ###
  5. barrysteyn renamed this gist Dec 9, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  6. barrysteyn revised this gist Dec 9, 2013. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    VIM
    ===

    Setup
    -----
  7. barrysteyn created this gist Nov 1, 2013.
    25 changes: 25 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    autocmd FileType python setlocal tabstop=4 softtabstop=4 shiftwidth=4 expandtab autoindent smarttab
    set smartindent
    set tabstop=4
    set shiftwidth=4
    set expandtab
    set relativenumber

    filetype plugin indent on
    syntax enable

    nnoremap <Space>w :<C-u>write<Cr>
    nnoremap <Space>q :<C-u>quit<Cr>
    nnoremap <Space>Q :<C-u>quit!<Cr>
    nnoremap <Space>n :<C-u>call <SID>toggle_number_option()<Cr>
    function! s:toggle_number_option()
    if &number == 1 "Tests to see if number is active
    set nonumber
    elseif &relativenumber == 1 "Checks if relarive number is active
    set number
    else
    set relativenumber
    endif
    endfunction

    inoremap ,. <Esc>