Copy the .vimrc
file below
``
(double backtick) - will take you back and forth in historyctrl p
- allows one to search for files easily
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> |