diff options
author | Johannes Stolp <jstolp@vgfr65cs2.internal.synopsys.com> | 2016-07-01 17:41:55 +0200 |
---|---|---|
committer | Johannes Stolp <jstolp@vgfr65cs2.internal.synopsys.com> | 2016-07-01 17:41:55 +0200 |
commit | 72706eb9323065cdb4152d73926fd680a4c5a9ab (patch) | |
tree | 4ab215cd6f2093d81915d2c8e5c685c5e3082fd3 /.vim/vimrc_files | |
parent | d3501225442d08275d1300e8797d1c15e0025488 (diff) | |
download | dotfiles-72706eb9323065cdb4152d73926fd680a4c5a9ab.tar.gz dotfiles-72706eb9323065cdb4152d73926fd680a4c5a9ab.zip |
Removed current plugin handling, added script to install vundle(a vim plugin manager).
Adapted vim config files to use vundle. To install new vim plugins, they must be added to .vim/vimrc_files/vundle.vim
Diffstat (limited to '.vim/vimrc_files')
-rw-r--r-- | .vim/vimrc_files/keymaps.vim | 21 | ||||
-rw-r--r-- | .vim/vimrc_files/plugin_config.vim | 11 | ||||
-rw-r--r-- | .vim/vimrc_files/vundle.vim | 18 |
3 files changed, 45 insertions, 5 deletions
diff --git a/.vim/vimrc_files/keymaps.vim b/.vim/vimrc_files/keymaps.vim index 4edd32a..c5dfaed 100644 --- a/.vim/vimrc_files/keymaps.vim +++ b/.vim/vimrc_files/keymaps.vim @@ -1,9 +1,20 @@ " dotfiles -- .vim/vimrc_files/keymaps.vim " author: johannst +" set leader key +let mapleader="," + "remap esc button imap jj <Esc> +" prevent quit accidentlty +map :q :close +map :wq :w +noremap :qq :q +noremap <leader>d :bd<CR> + +" re-adjust indentation +map <fi> mzgg=G`z "let ArrowDisableMessage = "Arrow Keys disabled! Better learn hjkl ;)" @@ -49,11 +60,11 @@ map <c-l> <c-w>l map <c-h> <c-w>h -" navigate between different Tabs -nnoremap <S-Left> :tabprev<CR> -nnoremap <S-Right> :tabnext<CR> -nnoremap <S-h> :tabprev<CR> -nnoremap <S-l> :tabnext<CR> +" navigate between different buffers +nnoremap <S-Left> :bprevious<CR> +nnoremap <S-Right> :bnext<CR> +nnoremap <S-h> :bprevious<CR> +nnoremap <S-l> :bnext<CR> " ctrl-ae jump to line start/end diff --git a/.vim/vimrc_files/plugin_config.vim b/.vim/vimrc_files/plugin_config.vim new file mode 100644 index 0000000..682d361 --- /dev/null +++ b/.vim/vimrc_files/plugin_config.vim @@ -0,0 +1,11 @@ +" dotfiles -- .vim/vimrc_files/plugin_config.vim +" author: johannst + + +" +----------------------------+ +" | Vim-Airline | +" +----------------------------+ +" Enable the list of buffers +let g:airline#extensions#tabline#enabled = 1 +" Show just the filename +let g:airline#extensions#tabline#fnamemod = ':t' diff --git a/.vim/vimrc_files/vundle.vim b/.vim/vimrc_files/vundle.vim new file mode 100644 index 0000000..4e7092e --- /dev/null +++ b/.vim/vimrc_files/vundle.vim @@ -0,0 +1,18 @@ +" dotfiles -- .vim/vimrc_files/vundle.vim +" author: johannst + +" to install plugins open vim and run :PluginInstall + +filetype off " necessary for vundle!!! +set rtp+=~/.vim/bundle/Vundle.vim + +call vundle#begin() + +Plugin 'VundleVim/Vundle.vim' +Plugin 'jlanzarotta/bufexplorer' + + +Plugin 'vim-airline/vim-airline' +Plugin 'vim-airline/vim-airline-themes' + +call vundle#end() |