Skip to content

Instantly share code, notes, and snippets.

@Sotasho
Last active December 5, 2025 09:20
Show Gist options
  • Select an option

  • Save Sotasho/c53cebe9b448ba5c01c5ff575d9a904b to your computer and use it in GitHub Desktop.

Select an option

Save Sotasho/c53cebe9b448ba5c01c5ff575d9a904b to your computer and use it in GitHub Desktop.
My .vimrc
syntax on
filetype plugin on
color torte
inoremap <C-p> <C-r>*
nnoremap <C-z> viw
nnoremap <C-y> :%y+<CR>
nnoremap d "_d
xnoremap d "_d
onoremap d "_d
vnoremap y y`>
set clipboard=unnamed,unnamedplus
set tabstop=16
set shiftwidth=4
set softtabstop=4
set expandtab
set number
set nowrap
set autoindent
set background=dark
set completeopt=menuone,noinsert
set omnifunc=syntaxcomplete#Complete
set shortmess+=c
set backspace=indent,eol,start
set noswapfile
set autoread
au FocusGained,BufEnter * checktime
if has("gui_running")
set guioptions-=m
set guioptions-=T
set guioptions-=L
set guioptions-=r
set guifont=Consolas:h11:cANSI
endif
let g:netrw_keepdir = 0
let g:netrw_banner = 0
let g:netrw_winsize = 20
let g:netrw_browse_split = 4
function! ToggleNetrw()
if exists("t:netrw_bufname")
:Lexplore!
else
:Lexplore
endif
endfunction
nnoremap <C-b> :call ToggleNetrw()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment