" Vundle Plugin Manager set nocompatible " be iMproved, required filetype off " required " Keep Plugin commands between plug#begin/end. call plug#begin('~/.vim/plugged') " Let Plug manager plugins, required Plug 'junegunn/vim-plug' " A plugin which allows you to use for all your insert completion needs Plug 'ervandew/supertab' " A small Vim plugin for previewing markdown files in a browser using ctrl+p. Plug 'JamshedVesuna/vim-markdown-preview' " let vim_markdown_preview_github=1 let vim_markdown_preview_hotkey='' " HTML5 + inline SVG omnicomplete function, indent and syntax for Vim Plug 'othree/html5.vim' " A file-type sensible comments for Vim. Plug 'tomtom/tcomment_vim' " A finder for vim. Plug 'ctrlpvim/ctrlp.vim' " A plugin to display the git options Plug 'tpope/vim-fugitive' " A code-completion engine for Vim Plug 'Valloric/YouCompleteMe' let g:ycm_autoclose_preview_window_after_completion = 1 " let g:ycm_global_ycm_extra_conf ='~/.ycm_extra_conf.py' " let g:loaded_youcompleteme = 1 " A code-completion engine for c/c++ "Plug 'Rip-Rip/clang_complete' "let g:clang_user_options='|| exit 0' " A plugin to auto close brackets Plug 'jiangmiao/auto-pairs' " Track the engine for snippets Plug 'SirVer/ultisnips' " make YCM compatible with UltiSnips (using supertab) let g:ycm_key_list_select_completion = ['', ''] let g:ycm_key_list_previous_completion = ['', ''] let g:SuperTabDefaultCompletionType = '' " better key bindings for UltiSnipsExpandTrigger let g:UltiSnipsExpandTrigger = "" let g:UltiSnipsJumpForwardTrigger = "" let g:UltiSnipsJumpBackwardTrigger = "" " Snippets are separated from the engine. Plug 'honza/vim-snippets' " A plugin to auto complete based in cache of words in buffer. " Plug 'Shougo/neocomplete.vim' " let g:neocomplete#enable_at_startup = 1 " let g:neocomplete#enable_smart_case = 1 " A plugin to see the colors directly in vim. Plug 'gorodinskiy/vim-coloresque' " Lean & mean status/tabline for vim that's light as air. Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'powerline/powerline' " A pack of colorschemes for vim. Plug 'dandorman/vim-colors' " This plugin provides a start screen for Vim and Neovim. Plug 'mhinz/vim-startify' " This plugin causes all trailing whitespace to be highlighted in red. Plug 'bronson/vim-trailing-whitespace' " This plugin provides higlighted for nginx confs Plug 'evanmiller/nginx-vim-syntax' " This plugin provides higlighted and syntax for ansible, yaml and jinja2 Plug 'pearofducks/ansible-vim' " This plugin provides support for writing LaTeX documents. Plug 'lervag/vimtex' " A plugin that provides support for writing LaTeX documents. " Plug 'lervag/vimtex' " A much simpler way to use some motions in vim. " Plug 'easymotion/vim-easymotion' " A simple, easy-to-use Vim alignment plugin. " Plug 'junegunn/vim-easy-align' " Additional vim c++ syntax highlighting. Plug 'octol/vim-cpp-enhanced-highlight' " Additional vim nginx.conf syntax highlighting. Plug 'evanmiller/nginx-vim-syntax' " Additional vim python syntax highlighting. Plug 'hdima/python-syntax' " Ember Handlebars/HTMLBars syntax highlighting and indentation to Vim Plug 'joukevandermaas/vim-ember-hbs' " Syntax checking plugin for Vim. " Plug 'scrooloose/syntastic' " Permit to tab-complete words while typing in a search. Plug 'vim-scripts/SearchComplete' " The NERD tree allows you to explore your filesystem and to open files and directories. Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } " Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' } " Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' } " Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } set wildignore+=*.pyc,*.o,*.obj,*.svn,*.swp,*.class,*.hg,*.DS_Store let NERDTreeRespectWildIgnore=1 call plug#end() " required " To ignore plugin indent changes, instead use: filetype plugin indent on " required " Put your non-Plugin stuff after this line. " Use airline plugin in all windows. set laststatus=2 let g:airline_theme='luna' let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#enabled = 1 " Configure the minimum number of tabs needed to show the tabline. "let g:airline#extensions#tabline#tab_min_count = 2 " Visual autocomplete for command menu. set wildmenu " Automatically read files when they've changed. set autoread " Make backspace work like most other apps. set backspace=2 " Set syntax. syntax on " Set autoindent. set ai " Show (partial) command in the last line of the screen. set showcmd " Set autoindent for C language. set cindent " Use the clipboard from the system in VIM. set clipboard=unnamedplus " Highlight current line. set cursorline set cursorcolumn " Tab navigation. nnoremap H gT nnoremap L gt " AutoClose. imap < <> " Move lines like in atom. nnoremap :m .+1== nnoremap :m .-2== inoremap :m .+1==gi inoremap :m .-2==gi vnoremap :m '>+1gv=gv vnoremap :m '<-2gv=gv " Move to beginning/end of line. nnoremap B ^ nnoremap E $ " Disable arrow keys. noremap noremap noremap noremap vnoremap vnoremap vnoremap vnoremap " Show a vertical line on column 80. if exists('+colorcolumn') set colorcolumn=80 else au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1) endif " Changing the directory from temporary files. set swapfile set dir=/tmp/ set backup set backupdir=/tmp/ set undodir=/tmp/ set shiftwidth=2 " Encoding UTF-8. set encoding=utf8 " Set ignorecase and smartcase in search. set ignorecase set smartcase " Search as characters are entered. set incsearch " Highlight matches. set hlsearch " Option for tab. set expandtab set tabstop=2 set shiftwidth=2 set softtabstop=2 set smarttab " Colors configs. set background=dark colorscheme molokai " Put the monokai.vim file in .vim/colors set t_Co=256 " Set numbers in lines of file. set number " Switch between relative and absolute numbers map :set rnu! " Highlight matching [{()}]. set showmatch " Save with ctrl+s. " Set F2 button to call NerdTree. map :NERDTreeToggle " Set F3 button to indent all the file. map mzgg=G`z "Remove all trailing whitespace by pressing F4. nnoremap :let s=@/:%s/\s\+$//e:let @/=s "Reload file map :e! " Enable the use of spell checker. map :set spell spelllang=pt " z= Show words suggestions. " zg Add the word to dict. " Disable the use of spell checker. map :set nospell " Startify plugin let g:startify_custom_header = [ \ ' ======================================================', \ ' ________ ++ ________', \ ' /VVVVVVVV\++++ /VVVVVVVV\', \ ' \VVVVVVVV/++++++\VVVVVVVV/', \ ' |VVVVVV|++++++++/VVVVV/', \ ' |VVVVVV|++++++/VVVVV/', \ ' +|VVVVVV|++++/VVVVV/+', \ ' +++|VVVVVV|++/VVVVV/+++++', \ ' +++++|VVVVVV|/VVVVV/+++++++++', \ ' +++|VVVVVVVVVVV/+++++++++', \ ' +|VVVVVVVVV/+++++++++', \ ' |VVVVVVV/+++++++++', \ ' |VVVVV/+++++++++', \ ' |VVV/+++++++++', \ ' V/ ++++++', \ ' ++', \ ' ======================================================', \ ] let g:startify_custom_footer = [ \ '', \ ' ======================================================', \ '', \ ' Copyleft', \ ] let g:startify_bookmarks = [ \ '~/.vimrc', \ '~/.bashrc', \ '~/Dropbox/UnB', \ '~/Dropbox/UnB/FSO', \ ] let g:startify_list_order = [ \ [' These are my bookmarks:'], \ 'bookmarks', \ [' My most recently:'], \ 'files', \ [' Sessions:'], \ 'sessions', \ [' Current Dir:'], \ 'dir', \ ]