"settings" syntax on set expandtab set tabstop=4 set shiftwidth=4 set number set rnu set incsearch set autoindent set smartindent set nocompatible " be iMproved, required set guioptions+=a set showmatch set background=dark set nowrapscan set hls "Using ctags set autochdir set tags+=./tags; ":set spelllang=en" ":set spell" "set ignorecase" "set swap file directory set directory^=$HOME/.vim/swap// set list set listchars=tab:▸· highlight NonText guifg=#4a4a59 highlight SpecialKey guifg=#4a4a59 "mappings" cmap :q cmap :s nnoremap :rightb vert term nnoremap mlggvG$"+y'l vnoremap "+y vnoremap "+gP nnoremap @q noremap col('.') == match(getline('.'),'\S')+1 ? '0' : '^' imap map :NERDTreeToggle nnoremap Q noremap 1 1gt noremap 2 2gt noremap 3 3gt noremap 4 4gt noremap 5 5gt noremap 6 6gt noremap 7 7gt noremap 8 8gt noremap 9 9gt noremap 0 :tablast nnoremap vgf :inoremap vvv library ieee;use ieee.std_logic_1164.all ;entity top is port () ;end entity;architecture arch_top of top is beginend architecture; autocmd BufNewFile *.vhd 0r ~/.vim/template/skeleton.vhd autocmd BufNewFile,BufRead *.v,*.vs set syntax=verilog "abbreviations" :iabbrev adn and :iabbrev amd and :iabbrev waht what :iabbrev tehn then :iabbrev teh the :iabbrev libararay library :iabbrev librarya library :iabbrev Soze Size autocmd vimenter * colorscheme gruvbox " Add spaces after comment delimiters by default let g:NERDSpaceDelims = 1 " Use compact syntax for prettified multi-line comments let g:NERDCompactSexyComs = 1 " Align line-wise comment delimiters flush left instead of following code indentation let g:NERDDefaultAlign = 'left' " Set a language to use its alternate delimiters by default let g:NERDAltDelims_java = 1 " Add your own custom formats or override the defaults let g:NERDCustomDelimiters = { 'c': { 'left': '/**','right': '*/' } } " Allow commenting and inverting empty lines (useful when commenting a region) let g:NERDCommentEmptyLines = 1 " Enable trimming of trailing whitespace when uncommenting let g:NERDTrimTrailingWhitespace = 1 " :autocmd FileType vhdl set !number let g:gruvbox_contrast_dark = 'soft' " filetype on " 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' " The following are examples of different formats supported. " Keep Plugin commands between vundle#begin/end. " plugin on GitHub repo " Plugin 'tpope/vim-fugitive' " plugin from http://vim-scripts.org/vim/scripts.html " Plugin 'L9' " Git plugin not hosted on GitHub " git repos on your local machine (i.e. when working on your own plugin) " Plugin 'file:///home/gmarik/path/to/plugin' " The sparkup vim script is in a subdirectory of this repo called vim. " 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 " different version somewhere else. " Plugin 'ascenator/L9', {'name': 'newL9'} Plugin 'derekwyatt/vim-fswitch' " This plugin for Vim enable an auto-close chars feature for you. For instance if you type an '(', ``autoclose`` will automatically insert a ')' and put the cursor between than. " Plugin 'Townk/vim-autoclose' " Status bar below " Plugin 'vim-airline/vim-airline' " Indentation markers " Plugin 'yggdroot/indentline' " This theme " Plugin 'morhetz/gruvbox' " File Explorer " Plugin 'preservim/nerdtree' " Align regex " Plugin 'junegunn/vim-easy-align' " Display marks" Plugin 'kshenoy/vim-signature' Plugin 'preservim/nerdcommenter' Plugin 'lervag/vimtex' " 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