Created
April 15, 2021 08:23
-
-
Save raggleton/8ab6b8b3fee0a0b3e92a8da679696d39 to your computer and use it in GitHub Desktop.
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
" activates filetype detection | |
filetype plugin indent on | |
" activates syntax highlighting among other things | |
syntax on | |
" The width of a TAB is set to 4. | |
" Still it is a \t. It is just that | |
" Vim will interpret it to be having | |
" a width of 4. | |
set tabstop=4 | |
" Indents will have a width of 4 | |
set shiftwidth=4 | |
" Sets the number of columns for a TAB | |
set softtabstop=4 | |
" Expand TABs to spaces | |
set expandtab | |
" set leader to comma | |
let mapleader="," | |
" turn line numbers on | |
set number | |
" change line number colour | |
" highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE | |
" allow line highlighting | |
"cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white | |
"hi CursorLine | |
"hi CursorColumn | |
nnoremap <Leader>c :set cursorline! cursorcolumn!<CR> | |
" visual autocomplete for command menu | |
set wildmenu | |
" highlight matching [{()}] | |
set showmatch | |
" highlight matches | |
set hlsearch | |
" turn off search higlight | |
nnoremap <leader><space> :nohlsearch<CR> | |
" fix backspace issue on macs | |
set backspace=indent,eol,start | |
set background=dark | |
" solarized options | |
" let g:solarized_visibility = "high" | |
" let g:solarized_contrast = "high" | |
" let g:solarized_termcolors=256 | |
" colorscheme solarized | |
" | |
" toggle set paste | |
set pastetoggle=<F9> | |
" Toggle relative and absolute line numbers | |
function! NumberToggle() | |
if(&relativenumber == 1) | |
set nornu | |
else | |
set rnu | |
endif | |
endfunc | |
nnoremap <C-n> :call NumberToggle()<cr> | |
set noruler | |
set laststatus=0 | |
set statusline="%f %l" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment