From 33684d520960459a9b852bc99a0a3f2eb8804ecf Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 10 May 2018 08:26:50 -0700 Subject: [vim] some clean up --- vimrc | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index 0e1d648..8f0d1bf 100644 --- a/vimrc +++ b/vimrc @@ -37,6 +37,22 @@ call plug#end() " configure ack.vim to use silver surfer let g:ackprg = 'ag --vimgrep --smart-case' +" configure vim-go +let g:go_debug_windows = { + \ 'vars': 'leftabove 35vnew', + \ 'stack': 'botright 10new', +\ } + +" configure fzf plugin +let g:fzf_command_prefix = 'Fzf' +let g:fzf_layout = { 'down': '~20%' } + +nmap :FzfHistory +imap :FzfHistory + +nmap :FzfFiles +imap :FzfFiles + " Python settings autocmd BufNewFile,BufRead *.py setlocal tabstop=2 softtabstop=2 shiftwidth=2 textwidth=100 smarttab expandtab @@ -44,9 +60,16 @@ autocmd BufNewFile,BufRead *.py setlocal tabstop=2 softtabstop=2 shiftwidth=2 autocmd BufNewFile,BufRead *.json setlocal tabstop=2 softtabstop=2 expandtab " Dockerfile settings -autocmd FileType dockerfile set noexpandtab +autocmd FileType dockerfile setlocal noexpandtab + +" Go settings +autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=2 shiftwidth=2 + +" Yaml settings +autocmd BufNewFile,BufRead *.yml setlocal expandtab tabstop=2 shiftwidth=2 +autocmd BufNewFile,BufRead *.yaml setlocal expandtab tabstop=2 shiftwidth=2 " mapping imap jj " Exit on j -syntax off +syntax on -- cgit 1.4.1