From bcf8550afc38a4005f9c53e8a2c4af879e04831b Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Wed, 25 May 2016 12:24:43 +0200 Subject: added more plugins and removed symbol bar in gvim new features introduced by plugins * quick navigation: \b - switch between buffer \\w or \\f for faster cursor placement * vimshell: :new | VimShell * quote replacement like :cs"' --- vimrc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 2443738..75d7aac 100644 --- a/vimrc +++ b/vimrc @@ -23,8 +23,11 @@ Plugin 'gregsexton/matchtag' | " highlights closing ML Plugin 'indenthtml.vim' | " works better with mixed html/css/javascript Plugin 'easymotion/vim-easymotion' | " speed up navigation: try \\w or \\f, then one of the highlighted chars Plugin 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' +Plugin 'Shougo/vimproc.vim' +Plugin 'Shougo/vimshell.vim' +Plugin 'jeetsukumaran/vim-buffergator' | " switch buffers with \b or <\-Left> <\-Right> - +let g:airline_powerline_fonts = 1 let Tlist_Compact_Format = 1 | " let Tlist_GainFocus_On_ToggleOpen = 1 | " @@ -85,6 +88,7 @@ set spell spelllang=en,de | " enable spell checker set virtualedit=onemore | " one character beyond the line length should be navigatable (options: all,insert,block,onemore) set breakindent cpoptions+=n | " when wrapping lines indent wrapped line to align with the previews set linebreak | " do not wrap in the middle of words +set display+=lastline | " do not show the @ symbol in the end of a long line set showcmd | " displays status line messages while selecting (matrix size) set nofoldenable | " do not fold code automatically set tags+=~/.vim/systags | " ctags -R -f ~/.vim/systags /usr/include /usr/local/include @@ -105,6 +109,8 @@ set laststatus=2 | " this is required for airline set cmdheight=1 | " controls how many lines the command line has set relativenumber | " displays current lines line no as zero point from where relative numbers are getting counted +set splitbelow | " open new windows below the current one (i find that more intuitive) + if has("multi_byte") set encoding=utf-8 | " we need default utf-8 encoding to use cool chars as line break and so on (see below) scriptencoding utf-8 | " tell vim that we are using utf-8 here @@ -159,10 +165,10 @@ endif if has("gui_running") set mouse=a | " use mouse in gui-mode (which is default) set mouseshape+=n:beam,v:beam | " display a text input cursor even in normal and selection mode - set guicursor=n-v-c:ver30-Cursor-blinkon500-blinkoff500 | " how the caret looks like + set guicursor=n-v-c:ver20-Cursor-blinkon500-blinkoff500 | " how the caret looks like set guitablabel=%t | " do not display full path as tabname set guioptions+=m | " menu bar - set guioptions+=T | " toolbar + set guioptions-=T | " toolbar set guioptions+=r | " right-hand scroll bar set guioptions-=c | " use console dialogs instead of popups set guioptions+=a | " autoselect: copy&paste using middleclick -- cgit v1.2.3