Skip to content

Instantly share code, notes, and snippets.

@zvakanaka
Last active November 16, 2024 22:03
Show Gist options
  • Save zvakanaka/2144cc15c772b6588b78365ff3154f85 to your computer and use it in GitHub Desktop.
Save zvakanaka/2144cc15c772b6588b78365ff3154f85 to your computer and use it in GitHub Desktop.
" vertical bar as cursor in insert mode
let &t_SI = "\e[6 q"
let &t_EI = "\e[2 q"
" allow mouse
set mouse=a
" sync copy/paste with system clipboard (may need unnamedplus on Linux)
set clipboard+=unnamed
" display line numbers
set nu
" save with space+w in normal mode
nnoremap <space>w :w<CR>
" ctrl+s to save in normal and insert modes
nnoremap <C-S> :update<cr>
inoremap <C-S> <Esc>:update<cr>
" quit with space q in normal mode
nnoremap <space>q :q<cr>
set tabstop=2
set shiftwidth=2 smarttab
set expandtab
nnoremap <silent> <C-Up> :resize +3<CR>
nnoremap <silent> <C-Down> :resize -3<CR>
nnoremap <silent> <C-Left> :vertical resize -3<CR>
nnoremap <silent> <C-Right> :vertical resize +3<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment