Skip to content

Instantly share code, notes, and snippets.

@shakna-israel

shakna-israel/.vimrc

Last active Mar 21, 2018
Embed
What would you like to do?
A simple vim
set nocompatible " must be the first line
filetype on
filetype indent on
filetype plugin on
set nowrap
set laststatus=2
set statusline=%<%f\%h%m%r%=%-20.(line=%l\ \ col=%c%V\ \ totlin=%L%)\ \ \%h%m%r%=%-40(bytval=0x%B,%n%Y%)\%P
set ofu=syntaxcomplete#Complete
" Above is SSH compatibility fixes
" Use arrows to traverse line endings
set whichwrap+=<,>,[,]
" Start in Insert Mode
au BufRead,BufNewFile * start
" Map CTRL+S to save
nnoremap <c-s> :w<cr>
inoremap <c-s> <Esc>:w<cr>I
" Map CTRL+Q to save and quit
nnoremap <c-q> :wq<cr>
inoremap <c-q> <Esc>:wq<cr>
" Autoreload after 4s inactivity.
set autoread
au CursorHold,CursorHoldI * checktime
" Show line numbers
set number
" Make backspace always work in Insert mode
set backspace=indent,eol,start
@shakna-israel

This comment has been minimized.

Copy link
Owner Author

@shakna-israel shakna-israel commented Mar 21, 2018

Nano is currently unuseable across ssh on TinyCoreLinux. Some issues with readline.

However, with a few tweaks, vim can fit, and be fairly nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.