Skip to content

Instantly share code, notes, and snippets.

@validatorru
Created August 8, 2021 08:50
Show Gist options
  • Save validatorru/55a0c46c342a361ec303f5855d7711b5 to your computer and use it in GitHub Desktop.
Save validatorru/55a0c46c342a361ec303f5855d7711b5 to your computer and use it in GitHub Desktop.
set rtp+=~/Settings/vim/vim-vue-plugin
set rtp+=~/Settings/vim/emmet-vim
set rtp+=~/Settings/vim/vim-airline
set rtp+=~/Settings/vim/nerdtree
set rtp+=~/Settings/vim/vim-blade
set rtp+=~/Settings/vim/vim-matchtag
let g:user_emmet_mode='a'
set tabstop=2 softtabstop=2 expandtab shiftwidth=2 smarttab
set fillchars+=vert:\
set autoindent
set smartindent
set directory^=$HOME/.vim/tmp//
set showmatch
set matchtime=3
inoremap } }<Left><c-o>%<c-o>:sleep 500m<CR><c-o>%<c-o>a
inoremap ] ]<Left><c-o>%<c-o>:sleep 500m<CR><c-o>%<c-o>a
inoremap ) )<Left><c-o>%<c-o>:sleep 500m<CR><c-o>%<c-o>a
nnoremap <S-Up> :m-1<CR>
nnoremap <S-Down> :m+<CR>
inoremap <S-Up> <Esc>:m-1<CR>
inoremap <S-Down> <Esc>:m+<CR>
noremap <C-S> :update<CR>
vnoremap <C-S> <C-C>:update<CR>
inoremap <C-S> <C-O>:update<CR>
noremap <D-s> :w<CR>
vnoremap <D-s> <Esc>:w<CR>
inoremap <D-s> <Esc>:w<CR>
map <C-\> :NERDTreeToggle<CR>
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
let NERDTreeShowHidden=1
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
autocmd BufEnter * lcd %:p:h
syntax on
set number
set numberwidth=6
ab clls console.log('')<ESC>F'
ab lgi logging.info(f'')<ESC>hi
set cursorline
highlight NonText ctermfg=6
highlight LineNr ctermfg=59
highlight OverLength ctermbg=darkred ctermfg=black guibg=#592929
highlight MatchTag ctermbg=darkred ctermfg=black
match OverLength /\%87v.\+/
map <leader>n :bn<cr>
map <leader>p :bp<cr>
map <leader>d :bd<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment