diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2019-08-22 18:30:24 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2019-08-22 18:30:24 +0200 |
| commit | 4ead9be4468d8d58c027bf6e6616e3b4d6e727eb (patch) | |
| tree | 18ab19fd5213c9d302b165eafa46a6f1f8902e75 /.vim/bundles.vim | |
| parent | 04f4a7df197ce327f36b666869a1ca2f09934e58 (diff) | |
| download | dotfiles-4ead9be4468d8d58c027bf6e6616e3b4d6e727eb.tar.gz dotfiles-4ead9be4468d8d58c027bf6e6616e3b4d6e727eb.zip | |
Complete re-structuring so it's easier to install
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.vim/bundles.vim')
| -rw-r--r-- | .vim/bundles.vim | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.vim/bundles.vim b/.vim/bundles.vim new file mode 100644 index 0000000..8d012ac --- /dev/null +++ b/.vim/bundles.vim @@ -0,0 +1,38 @@ +" Vundle setup +set rtp+=~/.vim/bundle/Vundle.vim.git +call vundle#begin() + +Plugin 'gmarik/Vundle.vim' + +" My list of plugins. +Plugin 'tpope/vim-surround.git' +Plugin 'kien/ctrlp.vim.git' +Plugin 'derekwyatt/vim-scala.git' +Plugin 'fatih/vim-go' +Plugin 'Glench/Vim-Jinja2-Syntax' +Plugin 'saltstack/salt-vim' +Plugin 'b4b4r07/vim-hcl' +Plugin 'fatih/vim-hclfmt' + +call vundle#end() + +"" +" Some small adjustments for the installed plugins. + +" vim-surround.vim: <leader>s is used to surround a word. +map <leader>s ysiw + +" Let CtrlP's window to be taller than its default configuration. +let g:ctrlp_match_window = 'max:40' + +" Hi-yo Silver! +let g:ctrlp_user_command = 'ag %s -l --nocolor --hidden -g ""' + +" Tell vim-go to use goimports on save. +let g:go_fmt_command = "goimports" + +" Execute go-lint on save. +if isdirectory($GOPATH."/src/github.com/golang/lint/misc/vim") + set rtp+=$GOPATH/src/github.com/golang/lint/misc/vim + autocmd BufWritePost,FileWritePost *.go execute 'Lint' | cwindow +endif |
