Last active
August 4, 2022 03:47
-
-
Save hunterirving/ee039d78de6c6416a421abc6a4ac4a29 to your computer and use it in GitHub Desktop.
my personal vimrc file
This file contains hidden or 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
"set colors | |
syntax on | |
colorscheme onedark | |
"allow navigation up/down within lines | |
noremap <silent> <Up> gk | |
noremap <silent> <Down> gj | |
noremap <silent> <Home> g<Home> | |
noremap <silent> <End> g<End> | |
inoremap <silent> <Up> <C-o>gk | |
inoremap <silent> <Down> <C-o>gj | |
inoremap <silent> <Home> <C-o>g<Home> | |
inoremap <silent> <End> <C-o>g<End> | |
"keep cursor centered in window | |
:nnoremap k kzz | |
:nnoremap j jzz | |
:set scrolloff=999 | |
"wrap to next/prev line at end/beginning of line | |
set whichwrap+=<,h | |
set whichwrap+=>,l | |
set whichwrap+=[,] | |
"disable startup message | |
set shortmess+=at | |
"allow backspace to wrap around beginning of lines | |
set backspace=indent,eol,start | |
"set width of tab | |
:set tabstop=2 | |
"set shiftwidth equal to tabstop | |
:set shiftwidth=0 | |
"don't split words on linebreak | |
:set linebreak | |
"indentation guides (visual tabs) | |
:set listchars=tab:\|\ | |
:set list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment