Skip to content

Instantly share code, notes, and snippets.

@LinuxDragon57
Last active December 13, 2024 15:42
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 "required for vundle
filetype off "required for vundle
" set the runtime path to include Vundle and initialize
set rtp+=/usr/share/vim/bundle/Vundle.vim
call vundle#begin('/usr/share/vim/plugins')
Plugin 'VundleVim/Vundle.vim' "Allow Vundle to manage itself
Plugin 'tpope/vim-fugitive'
Plugin 'morhetz/gruvbox'
Plugin 'pineapplegiant/spaceduck', {'branch': 'main'}
call vundle#end()
filetype indent plugin on
syntax on
set hidden
set wildmode=longest,list,full
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
colorscheme gruvbox
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 :tabclose<cr>
map <leader>tm :tabmove<cr>
map <leader>t<leader> :tabnext<cr>
nnoremap <Tab> >>
vnoremap <Tab> >gv
nnoremap <S-Tab> <<
vnoremap <S-Tab> <gv
@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