diff options
| author | Miquel Sabaté <mikisabate@gmail.com> | 2014-01-03 16:10:45 +0100 |
|---|---|---|
| committer | Miquel Sabaté <mikisabate@gmail.com> | 2014-01-03 16:10:45 +0100 |
| commit | 67a506b91c3cb7281a39dc0cf63b0660e18338c6 (patch) | |
| tree | 33e117b20bdab685489e390d1842ef1b328b8186 /vimrc | |
| parent | 9c8b645502e7219dfc05807131ba88623ae362b2 (diff) | |
| download | dotfiles-67a506b91c3cb7281a39dc0cf63b0660e18338c6.tar.gz dotfiles-67a506b91c3cb7281a39dc0cf63b0660e18338c6.zip | |
vim: let's use vundle.
Diffstat (limited to 'vimrc')
| -rw-r--r-- | vimrc | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -93,13 +93,21 @@ set expandtab set backspace=indent,eol,start "" -" Filetypes +" Plugins. filetype off filetype indent plugin off + +" Using the Go plugins from the official repo. set runtimepath+=$GOROOT/misc/vim -filetype on -filetype indent plugin on + +" All the plugins are listed in my bundles file, that will be installed +" inside the ~/.vim directory. +source ~/.vim/bundles.vim + +"" +" Filetypes + autocmd FileType ruby set shiftwidth=2 autocmd FileType c set shiftwidth=4 tabstop=4 autocmd FileType yacc set shiftwidth=4 tabstop=4 @@ -110,7 +118,7 @@ autocmd FileType go set shiftwidth=4 tabstop=4 let mapleader = "," -" <C-S> in insert/normal mode: switch to normal mode and write to disk. +" <C-S> in normal/insert mode: switch to normal mode and write to disk. inoremap <C-S> <ESC>:w<CR> nnoremap <C-S> :w<CR> |
