Last active
July 5, 2022 07:11
-
-
Save anonymoustafa/8cf8b31f2d023c73957025c61833cf21 to your computer and use it in GitHub Desktop.
my .vimrc configuartions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
set autochdir " when making new file, the pwd is the path. not the root. | |
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 'tpope/vim-fugitive' | |
Plugin 'git://git.wincent.com/command-t.git' | |
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'MarcWeber/vim-addon-mw-utils' | |
Plugin 'tomtom/tlib_vim' | |
Plugin 'garbas/vim-snipmate' | |
Plugin 'grvcoelho/vim-javascript-snippets' | |
Plugin 'mattn/emmet-vim' | |
imap <C-J> <esc>a<Plug>snipMateNextOrTrigger | |
smap <C-J> <Plug>snipMateNextOrTrigger | |
call vundle#end() " required | |
filetype plugin indent on " required | |
let g:user_emmet_settings = { | |
\ 'variables': {'lang': 'ja'}, | |
\ 'html': { | |
\ 'default_attributes': { | |
\ 'option': {'value': v:null}, | |
\ 'textarea': {'id': v:null, 'name': v:null, 'cols': 10, 'rows': 10}, | |
\ }, | |
\ 'snippets': { | |
\ 'html:5': "<!DOCTYPE html>\n" | |
\ ."<html lang=\"${lang}\">\n" | |
\ ."<head>\n" | |
\ ."\t<meta charset=\"${charset}\">\n" | |
\ ."\t<title></title>\n" | |
\ ."\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n" | |
\ ."</head>\n" | |
\ ."<body>\n\t${child}|\n</body>\n" | |
\ ."</html>", | |
\ }, | |
\ }, | |
\} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment