summary refs log tree commit diff
path: root/vimrc
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-05-10 08:26:50 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-05-10 08:26:50 -0700
commit33684d520960459a9b852bc99a0a3f2eb8804ecf (patch)
treea6fb6f19c4e9e310d97c5026d7f930b397bb5473 /vimrc
parent[vim] Group settings by categories (diff)
downloademacs.d-33684d520960459a9b852bc99a0a3f2eb8804ecf.tar.gz
[vim] some clean up
Diffstat (limited to 'vimrc')
-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