summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--vimrc27
1 files 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 <C-p> :FzfHistory<cr>
+imap <C-p> <esc>:<C-u>FzfHistory<cr>
+
+nmap <C-b> :FzfFiles<cr>
+imap <C-b> <esc>:<C-u>FzfFiles<cr>
+
 " 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 <Esc>    " Exit on j
 
-syntax off
+syntax on