Skip to content

Instantly share code, notes, and snippets.

@niksingh710
Created March 6, 2023 16:20
Show Gist options
  • Save niksingh710/335a8b821dd53031eb5e12e80c7ae7e5 to your computer and use it in GitHub Desktop.
Save niksingh710/335a8b821dd53031eb5e12e80c7ae7e5 to your computer and use it in GitHub Desktop.
" line numbers
set nu
set relativenumber
" tab & indent
set tabstop=2
set shiftwidth=2
set expandtab
set autoindent
" line wrapping
set nowrap
" smart searching
set ignorecase
set smartcase
set incsearch
" cursorline
set cursorline
set scrolloff=999
" split
set splitright
set splitbelow
" highlighting
syntax on
let g:mapleader=" "
imap <silent> jk <esc>
imap <c-s> <esc>:w!<cr>
nmap <c-s> :w!<cr>
nmap <leader>q :q!<cr>
@niksingh710
Copy link
Author

This is the basic vim config i use to edit quickly on TTY setup if I don't have my nvim or lunarvim setted up.
Command to setup curl https://gist.githubusercontent.com/niksingh710/335a8b821dd53031eb5e12e80c7ae7e5/raw/06dfec1e4c501d552da760bd8321f4a248a4227a/vim > ~/.vimrc

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