Skip to content

Instantly share code, notes, and snippets.

@OsmanBytyqi
Last active March 27, 2022 09:42
Show Gist options
  • Save OsmanBytyqi/c584e0a3915b7c235a02cf6e8cdf92e7 to your computer and use it in GitHub Desktop.
Save OsmanBytyqi/c584e0a3915b7c235a02cf6e8cdf92e7 to your computer and use it in GitHub Desktop.
.vimrc
" ___ ____
" / _ \| __ ) Osman Bytyqi
" | | | | _ \ https://github.com/OsmanBytyqi
" | |_| | |_) | https://www.linkedin.com/in/osman-bytyqi-bb6ba31b9/
" \___/|____/
"
set nocompatible " be iMproved, requiredE
filetype off " required
set hlsearch
set incsearch
" set default clipboard to the system clipboard
set clipboard=unnamedplus
vnoremap <C-c> "+y
map <C-p> "+p
vnoremap <C-c> "*y :let @+=@*<CR>
" set out tab size to 4 spaces
nnoremap <c-s> :w<CR>
"i
"noremap <A-e> <Esc>
set tabstop=4
set softtabstop=4
set shiftwidth=4
"converts our tabs to spaces
set expandtab
set autoindent
set fileformat=unix
"Enable to autocompletion ctrl+n to activate
set wildmode=longest,list,full
nnoremap <c-s> :w<CR>
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
Plugin 'VundleVim/Vundle.vim'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'ap/vim-css-color'
Plugin 'vim-latex/vim-latex'
"Plugin 'shmargum/vim-sass-colors'
Plugin 'itchyny/lightline.vim'
Plugin 'ryanoasis/vim-devicons'
Plugin 'miyakogi/seiya.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
"Plugin 'dense-analysis/ale'
Plugin 'tpope/vim-fugitive'
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
Plugin 'bling/vim-airline'
Plugin 'ayu-theme/ayu-vim'
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
Plugin 'preservim/nerdtree'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
Plugin 'HTML-AutoCloseTag'
Plugin 'mattn/emmet-vim'
" git repos on your local machine (i.e. when working on your own plugin)
" The sparkup vim script is in a subdirectory of this repo called vim.
Plugin 'pangloss/vim-javascript'
Plugin 'othree/html5.vim'
Plugin 'dense-analysis/ale'
Plugin 'vim-syntastic/syntastic'
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
"Plugin 'tpope/vim-markdown'
" different version somewhere else.
Plugin 'sonph/onehalf', { 'rtp': 'vim' }
" Plugin 'ascenator/L9', {'name': 'newL9'}
Plugin 'Valloric/YouCompleteMe'
Plugin 'morhetz/gruvbox'
Plugin 'joshdick/onedark.vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
syntax on
set noswapfile
set number relativenumber
set encoding=utf-8
"colorscheme onehalfdark
"colorscheme morning
set background=dark
colorscheme gruvbox
map <C-d> :NERDTreeToggle<CR>
map <c-t> :below terminal<CR>
imap jj <Esc>
nnoremap <C-h> :noh<CR>
nnoremap <C-f> :s/
" spell check
nnoremap <F6> :setlocal spell! spell?<CR>
let g:seiya_auto_enable=1
"set termguicolors " enable true colors support
"let ayucolor="light" " for light version of theme
"let ayucolor="mirage" " for mirage version of theme
"let ayucolor="dark" " for dark version of theme
"colorscheme ayu
nnoremap <C-H> <C-W>h
nnoremap <C-J> <C-W>j
nnoremap <C-K> <C-W>k
nnoremap <C-L> <C-W>l
"call dein#add('itchyny/lightline.vim')
"HTML
autocmd FileType html inoremap <Space><Space> <Esc>/<++><Enter>"_c4l
autocmd FileType html inoremap ;i <em></em><Space><++><Esc>FeT>i
autocmd FileType html inoremap ! <html><head></head></html><Space><++><Esc>FeT>i
autocmd FileType html inoremap ;p <p></p><Space><++><Esc>FpT>i
autocmd FileType html inoremap ;b <b></b><Space><++><Esc>FbT>i
autocmd FileType html inoremap ;h1 <h1></h1><Space><++><Esc>Fh1T>i
autocmd FileType html inoremap ;h2 <h2></h2><Space><++><Esc>FhT>i
autocmd FileType html inoremap ;h3 <h3></h3><Space><++><Esc>FhT>i
autocmd FileType html inoremap ;h4 <h4></h4><Space><++><Esc>FhT>i
autocmd FileType html inoremap ;h <header></header><Space><++><Esc>FhT>i
autocmd FileType html inoremap ;f <footer></footer><Space><++><Esc>FfT>i
autocmd FileType html inoremap .c <div class=""></div><Space><++><Esc>F"T>i
autocmd FileType html inoremap .d <div id=""></div><Space><++><Esc>F""T>i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment