-
-
Save niksingh710/335a8b821dd53031eb5e12e80c7ae7e5 to your computer and use it in GitHub Desktop.
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
" 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> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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