Created
December 13, 2019 21:36
-
-
Save mmacphail/67dee2c813c6a1d3e27c7b6ea2955b8e to your computer and use it in GitHub Desktop.
.vimrc manjaro
This file contains 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 | |
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') | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'itchyny/lightline.vim' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'alvan/vim-closetag' | |
Plugin 'euclio/vim-markdown-composer' | |
Plugin 'rust-lang/rust.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; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
" Requiered for lightline.vim plugin to work | |
" See https://github.com/itchyny/lightline.vim | |
set laststatus=2 | |
" Config for closetag plugin | |
" See https://github.com/alvan/vim-closetag | |
" filenames like *.xml, *.html, *.xhtml, ... | |
" These are the file extensions where this plugin is enabled. | |
" | |
let g:closetag_filenames = '*.xml,*.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 = 'xml,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', | |
\ } | |
" 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>>' | |
" Options for handling tabs and spacing | |
" See https://stackoverflow.com/questions/2054627/how-do-i-change-tab-size-in-vim/40008101 | |
" Also https://tedlogan.com/techblog3.html | |
autocmd Filetype xml setlocal softtabstop=4 | |
autocmd Filetype xml setlocal shiftwidth=4 | |
autocmd Filetype xml setlocal expandtab | |
autocmd Filetype java setlocal softtabstop=4 | |
autocmd Filetype java setlocal shiftwidth=4 | |
autocmd Filetype java setlocal expandtab | |
autocmd Filetype yml setlocal softtabstop=2 | |
autocmd Filetype yml setlocal shiftwidth=2 | |
autocmd Filetype yml setlocal expandtab | |
autocmd Filetype yaml setlocal softtabstop=2 | |
autocmd Filetype yaml setlocal shiftwidth=2 | |
autocmd Filetype yaml setlocal expandtab | |
" Sets the line number | |
" See https://www.cyberciti.biz/faq/vi-show-line-numbers/ | |
set number | |
syntax on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
python3 -m pip install pynvim