1 Commits

Author SHA1 Message Date
Jorge Holgado
8e498f3d85 vimrc added 2022-12-14 09:50:03 +01:00
4 changed files with 10 additions and 192 deletions

20
.vimrc
View File

@@ -50,8 +50,6 @@ Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
" Plugin outside ~/.vim/plugged with post-update hook " Plugin outside ~/.vim/plugged with post-update hook
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
"Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'
" Unmanaged plugin (manually installed and updated) " Unmanaged plugin (manually installed and updated)
@@ -74,10 +72,6 @@ Plug 'jeetsukumaran/vim-buffergator'
"Plug 'maxboisvert/vim-simple-complete' "Plug 'maxboisvert/vim-simple-complete'
" arduino stuff
Plug 'SirVer/ultisnips'
Plug 'sudar/vim-arduino-snippets'
" Initialize plugin system " Initialize plugin system
call plug#end() call plug#end()
@@ -114,13 +108,19 @@ nmap <F8> :TagbarToggle<CR>
" disable folding in markdown " disable folding in markdown
let g:vim_markdown_folding_disabled = 1 let g:vim_markdown_folding_disabled = 1
" for ino files, 2 spaces
autocmd Filetype arduino setlocal ts=2 sw=2 expandtab
" not using goimports, using gofmt because It will delete ciberterminal " not using goimports, using gofmt because It will delete ciberterminal
" imports " imports
" https://stackoverflow.com/questions/26824234/vim-go-deleting-unused-code-when-write-to-disk " https://stackoverflow.com/questions/26824234/vim-go-deleting-unused-code-when-write-to-disk
"let g:go_fmt_command = "gopls" "let g:go_fmt_command = "gopls"
"let g:go_fmt_autosave = 1 "let g:go_fmt_autosave = 1
"let g:go_mod_fmt_autosave = 1 "let g:go_mod_fmt_autosave = 1
" https://github.com/hashivim/vim-terraform/blob/master/doc/hcl.txt
let g:terraform_fmt_on_save = 1
let g:hcl_fold_sections = 0
let g:hcl_align = 1
" yaml
" https://yamllint.readthedocs.io/en/stable/text_editors.html
let g:syntastic_yaml_checkers = ['yamllint']
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab

View File

@@ -1,32 +0,0 @@
vim-airline
vim-airline-themes
vim-ale
vim-align
vim-ansible
vim-bufexplorer
vim-coverage-highlight
vim-csound
vim-ctrlp
vim-easymotion
vim-editorconfig
vim-fugitive
vim-gitgutter
vim-grammalecte
vim-indent-object
vim-jad
vim-jedi
vim-latexsuite
vim-molokai
vim-nerdcommenter
vim-nerdtree
vim-pastie
vim-runtime
vim-seti
vim-supertab
vim-surround
vim-syntastic
vim-tabular
vim-tagbar
vim-ultisnips
vim-vital
vim-youcompleteme-git

View File

@@ -1,32 +0,0 @@
#vim-airline
#vim-airline-themes
vim-ale
vim-align
vim-ansible
vim-bufexplorer
vim-coverage-highlight
vim-csound
#vim-ctrlp
vim-easymotion
#vim-editorconfig
#vim-fugitive
#vim-gitgutter
->vim-grammalecte
vim-indent-object
->vim-jad
vim-jedi
#vim-latexsuite
vim-molokai
vim-nerdcommenter
vim-nerdtree
vim-pastie
#vim-runtime
# OK vim-seti
vim-supertab
vim-surround
#vim-syntastic
#vim-tabular
vim-tagbar
#vim-ultisnips
vim-vital
vim-youcompleteme

View File

@@ -1,118 +0,0 @@
" ############################################## GLOBAL CONFIG
" ##############################################
set encoding=utf-8
set nocompatible " We're running Vim, not Vi!
set tabstop=4
set shiftwidth=4
set expandtab
"set termguicolors
" map leader with , to start combos
let mapleader = ","
let g:solarized_termcolors=256
execute pathogen#infect()
call plug#begin()
" The default plugin directory will be as follows:
" - Vim (Linux/macOS): '~/.vim/plugged'
" - Vim (Windows): '~/vimfiles/plugged'
" - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged'
" You can specify a custom plugin directory by passing it as the argument
" - e.g. `call plug#begin('~/.vim/plugged')`
" - Avoid using standard Vim directory names like 'plugin'
" Make sure you use single quotes
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
" Any valid git URL is allowed
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
" Multiple Plug commands can be written in a single line using | separators
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
" On-demand loading
"Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
" Using a non-default branch
Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
Plug 'fatih/vim-go', { 'tag': '*' }
" Plugin options
Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
" Plugin outside ~/.vim/plugged with post-update hook
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
"Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
" Unmanaged plugin (manually installed and updated)
"Plug '~/my-prototype-plugin'
Plug 'tpope/vim-sensible'
Plug 'junegunn/seoul256.vim'
Plug 'vim-syntastic/syntastic'
Plug 'mbbill/undotree'
" airline
" WARNING airline mess with command prompt!!
"Plug 'vim-airline/vim-airline'
"Plug 'vim-airline/vim-airline-themes'
" buffergator for buffers
Plug 'jeetsukumaran/vim-buffergator'
"Plug 'maxboisvert/vim-simple-complete'
" arduino stuff
Plug 'SirVer/ultisnips'
Plug 'sudar/vim-arduino-snippets'
" Initialize plugin system
call plug#end()
" NERD commenter
source ~/.vim/pluginconf/nerd_commenter.vim
" syntastic
source ~/.vim/pluginconf/syntastic.vim
" undotree
source ~/.vim/pluginconf/undotree.vim
" nerdtree
"source ~/.vim/pluginconf/nerdtree.vim
" fzf
source ~/.vim/pluginconf/fzf.vim
" latex suggestions
source ~/.vim/pluginconf/latex.vim
" Additional configs
"colorschem solarized
colorscheme molokai
if &diff
colorscheme apprentice
endif
" tagbar
nmap <F8> :TagbarToggle<CR>
" disable folding in markdown
let g:vim_markdown_folding_disabled = 1
" for ino files, 2 spaces
autocmd Filetype arduino setlocal ts=2 sw=2 expandtab