Skip to content

Instantly share code, notes, and snippets.

@satrialoka
Last active October 4, 2024 10:48
Show Gist options
  • Select an option

  • Save satrialoka/66258d154ac63f729c4f4b68c3fb7a7c to your computer and use it in GitHub Desktop.

Select an option

Save satrialoka/66258d154ac63f729c4f4b68c3fb7a7c to your computer and use it in GitHub Desktop.
.vimrc
" A very minimal vimrc config for use in remote servers
" Loka 2024
" Enable line numbers
set number
set relativenumber
" Enable syntax highlighting
syntax on
" Set 4 spaces for a tab
set tabstop=4
set shiftwidth=4
set expandtab
" Show line and column number in the status line
set ruler
" Highlight matching parentheses
set showmatch
" Enable mouse support
set mouse=r
" Set swap and backup directory
"set backupdir=~/.vim/backup//
"set directory=~/.vim/swap//
" Disable backup and swap files (WARNING)
set nobackup
set noswapfile
set nowritebackup
@satrialoka
Copy link
Copy Markdown
Author

satrialoka commented Sep 17, 2024

on server do:

curl -o ~/.vimrc https://gist.githubusercontent.com/satrialoka/66258d154ac63f729c4f4b68c3fb7a7c/raw/cbb5d85523579d29258dbc8dced4b8a4d6d17765/.vimrc 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment