Skip to content

Instantly share code, notes, and snippets.

@Beatz748
Created October 10, 2022 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Beatz748/783dc196b23ab9d17d8d330f4b5f8b73 to your computer and use it in GitHub Desktop.
Save Beatz748/783dc196b23ab9d17d8d330f4b5f8b73 to your computer and use it in GitHub Desktop.
set number
syntax on
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
Plugin 'VundleVim/Vundle.vim'
Plugin '907th/vim-auto-save'
Plugin 'tomlion/vim-solidity'
Plugin 'alvan/vim-closetag'
Plugin 'vim-scripts/AutoComplPop'
Plugin 'tomasr/molokai'
Plugin 'scrooloose/nerdtree'
Plugin 'ingram1107/moneokai'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins;
" :PluginSearch foo - searches for foo;
" :PluginClean - confirms removal of unused plugins;
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
colorscheme moneokai
" let g:molokai_original = 1
" let g:rehash256 = 1
hi ColorColumn guibg=#2d2d2d ctermbg=246
:set cc=40
:set autoindent
:abbreviate #b /****************************************
:abbreviate #e ****************************************/
:imap { {}<Esc>i
:imap ( ()<Esc>i
":imap < <><Esc>i
" :imap < <><Esc>i
" :imap <index> </index>
:map <C-s> <Esc>:w<kEnter>
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
nnoremap <Space><Space> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
:set completeopt=longest,menuone
let g:auto_save = 1 " enable AutoSave on Vim startup
" Settings for html-typed files and html tags
" filenames like *.xml, *.html, *.xhtml, ...
" These are the file extensions where this plugin is enabled.
"
let g:closetag_filenames = '*.html,*.xhtml,*.phtml'
" filenames like *.xml, *.xhtml, ...
" This will make the list of non-closing tags self-closing in the specified files.
"
let g:closetag_xhtml_filenames = '*.xhtml,*.jsx'
" filetypes like xml, html, xhtml, ...
" These are the file types where this plugin is enabled.
"
let g:closetag_filetypes = 'html,xhtml,phtml'
" filetypes like xml, xhtml, ...
" This will make the list of non-closing tags self-closing in the specified files.
"
let g:closetag_xhtml_filetypes = 'xhtml,jsx'
" integer value [0|1]
" This will make the list of non-closing tags case-sensitive (e.g. `<Link>` will be closed while `<link>` won't.)
"
let g:closetag_emptyTags_caseSensitive = 1
" dict
" Disables auto-close if not in a "valid" region (based on filetype)
"
let g:closetag_regions = {
\ 'typescript.tsx': 'jsxRegion,tsxRegion',
\ 'javascript.jsx': 'jsxRegion',
\ 'typescriptreact': 'jsxRegion,tsxRegion',
\ 'javascriptreact': 'jsxRegion',
\ }
" Shortcut for closing tags, default is '>'
"
let g:closetag_shortcut = '>'
" Add > at current position without closing the current tag, default is ''
"
let g:closetag_close_shortcut = '<leader>>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment