Skip to content

Instantly share code, notes, and snippets.

@LinuxDragon57
Last active June 3, 2024 14:25
Show Gist options
  • Save LinuxDragon57/6d7c957b7ed943d12fd55f06987dfff0 to your computer and use it in GitHub Desktop.
Save LinuxDragon57/6d7c957b7ed943d12fd55f06987dfff0 to your computer and use it in GitHub Desktop.
set nocompatible
filetype indent plugin on
syntax on
set hidden
set wildmenu
set showcmd
set ignorecase
set smartcase
set hlsearch
set incsearch
set backspace=indent,eol,start
set autoindent
set smartindent
set wrap
set lbr
set tw=120
set nostartofline
set number
set ruler
set laststatus=2
set confirm
set mouse=a
set cmdheight=2
set notimeout ttimeout ttimeoutlen=200
set pastetoggle=<F11>
set shiftwidth=4
set softtabstop=4
set expandtab
set smarttab
map Y y$
nnoremap <C-L> :nohl<CR><C-L>
set history=512
set autoread
au FocusGained,BufEnter * checktime
nmap <leader>w :w!<cr>
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
set wildignore=*.o,*~,*.pyc
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store
set cmdheight=1
set hid
set lazyredraw
set magic
set showmatch
set mat=3
set noerrorbells
set novisualbell
set t_vb=
set tm=500
set regexpengine=0
set background=dark
set encoding=utf8
vnoremap <silent> * :<C-u>call VisualSelection('', '')<CR>/<C-R>=@/<CR><CR>
vnoremap <silent> # :<C-u>call VisualSelection('', '')<CR>?<C-R>=@/<CR><CR>
map <silent> <leader> :noh<cr>
set laststatus=2
colo retrobox
set textwidth=0
set wrapmargin=0
set wrap
set linebreak
" Mappings for managing tabs
map <leader>tn :tabnew<cr>
map <leader>to :tabonly<cr>
map <leader>tc :tabcloase<cr>
map <leader>tm :tabmove<cr>
map <leader>t<leader> :tabnext<cr>
@LinuxDragon57
Copy link
Author

Making my .vimrc public. Don't know why it was private.

@LinuxDragon57
Copy link
Author

Remove faulty line 56

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