Skip to content

Instantly share code, notes, and snippets.

@ricardojba
Last active January 17, 2024 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricardojba/d56a6840eb57d1d591b4fc1501f9e9cd to your computer and use it in GitHub Desktop.
Save ricardojba/d56a6840eb57d1d591b4fc1501f9e9cd to your computer and use it in GitHub Desktop.
syntax on
set nomodeline
"set backup
"set backupdir=~/.vim/backups " centralized backups
"set directory=~/.vim/swaps " centralized swaps
"set undodir=~/.vim/undo " centralized undo history
set fileformats=unix,dos,mac
set number " enable line numbers
set numberwidth=5
filetype plugin indent on
nore ; :
inoremap jj <Esc>
map Y y$
map <Leader>W :w !sudo tee % > /dev/null<CR>
"colorscheme blue
"colorscheme darkblue
"colorscheme default
"colorscheme delek
"colorscheme desert
"colorscheme elflord
"colorscheme evening
"colorscheme koehler
"colorscheme morning
"colorscheme murphy
"colorscheme pablo
"colorscheme peachpuff
"colorscheme ron
"colorscheme shine
"colorscheme torte
"colorscheme zellner
"colorscheme slate
"set background=dark
"let &colorcolumn=join(range(81,200),",")
noremap <C-n> :tabnew<CR>
noremap <C-l> :tabnext<CR>
noremap <C-h> :tabNext<CR>
set nocompatible
set t_Co=256
set autoindent " copy indent from current line
set backspace=indent,eol,start " intuitive backspacing in insert mode
set cmdheight=2 " never prompt for enter or command
set cursorline " underline cursor line
set encoding=utf-8 nobomb " use utf-8 wo bom
set gdefault " use g flag to search/replace
set hidden " switch buffers without saving
set history=1000 " history
set hlsearch " highlight searches
set ignorecase " ignore case when searching
set incsearch " dymanic pattern highlighting
set laststatus=2 " always show status line
set noeol " no newline at eof
set noerrorbells " disable error bells
set nostartofline " do not reset cursor to line start when moving
"set relativenumber " use line numbers relative to cursor
set paste " always use paste mode
set pastetoggle=<F2>
set scrolloff=5 " scroll 5 lines before horizontal window border
set shortmess=atI " mute intro message
set showcmd " show partial command as it is typed
set showmatch " show matching brackets
set showmode " show current mode
"set softtabstop=2 " make tabs as wide as two spaces
"set tabstop=2 " make tabs as wide as two spaces
set shiftwidth=2 " set > tab to 2 spaces
"set expandtab " use spaces instead of tabs
"set tabpagemax=15 " maximum 15 tabs
set ttyfast " optimize for fast terminal connections
set wildmenu " enchance cli completion
set cindent
set cinoptions=:s,ps,ts,cs
set cinwords=if,else,while,do,for,switch,case
set viminfo=%100,'100,/100,h,\"500,:100,n~/.viminfo
let g:syntastic_sh_checkers = ['shellcheck', 'sh']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment