Skip to content

Instantly share code, notes, and snippets.

@jayers99
Last active March 5, 2019 17:43
Show Gist options
  • Save jayers99/3dc4659c108cfa893a3fd9639562ed09 to your computer and use it in GitHub Desktop.
Save jayers99/3dc4659c108cfa893a3fd9639562ed09 to your computer and use it in GitHub Desktop.
syntax on
colorscheme desert
set listchars=tab:>-,trail:~,extends:>,precedes:<
"set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<
set list
set noshowmatch
set iskeyword+=-
" persistent undo
set undodir=~/.vim/undodir
set undofile
" Tabs / Spaces
set ts=2 " Set tabs to have 2 spaces
set sts=2 " Set backspace to delete a single tab rather than a single space
set expandtab " Expand tabs to spaces
set shiftwidth=2
set ignorecase
set smartcase
" disable the arrow keys
nnoremap <Left> :echo "No left for you!"<CR>
vnoremap <Left> :<C-u>echo "No left for you!"<CR>
inoremap <Left> <C-o>:echo "No left for you!"<CR>
nnoremap <Right> :echo "No right for you!"<CR>
vnoremap <Right> :<C-u>echo "No right for you!"<CR>
inoremap <Right> <C-o>:echo "No right for you!"<CR>
nnoremap <Up> :echo "No up for you!"<CR>
vnoremap <Up> :<C-u>echo "No up for you!"<CR>
inoremap <Up> <C-o>:echo "No up for you!"<CR>
nnoremap <Down> :echo "No down for you!"<CR>
vnoremap <Down> :<C-u>echo "No down for you!"<CR>
inoremap <Down> <C-o>:echo "No down for you!"<CR>
" code folding
"set foldmethod=indent
"set foldnestmax=20
"set nofoldenable
"set foldlevel=2
" Indentation
"set autoindent " Keep indentation when moving to next line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment