aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorMax Christian Pohle2016-12-07 10:44:36 +0100
committerMax Christian Pohle2016-12-07 10:44:36 +0100
commit80890fe291fbe664fac5587994d4bd5048ce8345 (patch)
tree15e41235dd4eac602ed1ff6acfa9dc4e8a0224fd /vimrc
parent4eaae3ff84995bce605f4c3553ad511a179d0c4b (diff)
downloadvim-karlmarks-80890fe291fbe664fac5587994d4bd5048ce8345.tar.bz2
vim-karlmarks-80890fe291fbe664fac5587994d4bd5048ce8345.zip
changed mouse behaviour, added vim-server desktop file
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 5ab571a..e155604 100644
--- a/vimrc
+++ b/vimrc
@@ -179,7 +179,8 @@ set hlsearch | " highlights all search matches (not as performa
179set ignorecase smartcase | " search with ignorecase by default, but use case sensitive search when one captical char is contained 179set ignorecase smartcase | " search with ignorecase by default, but use case sensitive search when one captical char is contained
180set lazyredraw | " disables redraw during macro exectution (improves performance) 180set lazyredraw | " disables redraw during macro exectution (improves performance)
181set linebreak | " wrap long lines at char 'breakat', not inside words 181set linebreak | " wrap long lines at char 'breakat', not inside words
182set mouse=a | " also supported by vim, should be default 182set mouse=n | " allow mouse in normal mode only, so one can use the terminals c&p feature in insert mode
183set mousemodel=popup | " only in gvim: right click opens a popup-menu
183set nocursorcolumn | " turn visual cursor column off (improves performance) 184set nocursorcolumn | " turn visual cursor column off (improves performance)
184set nocursorline | " turn visual cursor line off (improves performance) 185set nocursorline | " turn visual cursor line off (improves performance)
185set nofoldenable | " disable code folding. I hate code folding 186set nofoldenable | " disable code folding. I hate code folding
@@ -191,6 +192,7 @@ set nowrap | " but do not (by default) wrap long lines around
191set number | " turn line numbers on/off (performance decreases when they are shown) 192set number | " turn line numbers on/off (performance decreases when they are shown)
192set pumheight=8 | " Determines the maximum number of items to show in the popup menu for 193set pumheight=8 | " Determines the maximum number of items to show in the popup menu for
193set redrawtime=400 | " The time in milliseconds for redrawing the display. 194set redrawtime=400 | " The time in milliseconds for redrawing the display.
195set restorescreen | " restores the console after exiting vim
194set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge 196set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge
195set spell spelllang=en,de | " enable spell checker 197set spell spelllang=en,de | " enable spell checker
196set splitbelow | " open new windows below the current one (i find that more intuitive) 198set splitbelow | " open new windows below the current one (i find that more intuitive)
@@ -208,6 +210,7 @@ set writedelay=0
208if has("multi_byte") 210if has("multi_byte")
209 scriptencoding utf-8 | " tell vim that we are using utf-8 here 211 scriptencoding utf-8 | " tell vim that we are using utf-8 here
210 set encoding=utf-8 | " we need default utf-8 encoding to use cool chars as line break and so on (see below) 212 set encoding=utf-8 | " we need default utf-8 encoding to use cool chars as line break and so on (see below)
213 set termencoding=&encoding | " once we use special chars we assume everybody uses a terminal supporting those
211 set listchars=eol:↲ | " symbols used when using :set list (which displays non-printable chars) 214 set listchars=eol:↲ | " symbols used when using :set list (which displays non-printable chars)
212 set listchars+=extends:» | " symbols used when using :set list (which displays non-printable chars) 215 set listchars+=extends:» | " symbols used when using :set list (which displays non-printable chars)
213 set listchars+=precedes:« | " symbols used when using :set list (which displays non-printable chars) 216 set listchars+=precedes:« | " symbols used when using :set list (which displays non-printable chars)
@@ -227,6 +230,7 @@ if has("gui_running")
227 " set guifont=Droid\ Sans\ Mono\ for\ Powerline\ 12 230 " set guifont=Droid\ Sans\ Mono\ for\ Powerline\ 12
228 set guifont=Dejavu\ Sans\ Mono\ for\ Powerline\ 12 231 set guifont=Dejavu\ Sans\ Mono\ for\ Powerline\ 12
229 set guioptions-=e | " do not display tabs 232 set guioptions-=e | " do not display tabs
233 set winaltkeys=menu | " behave like other windows: ALT-key can be used to open the menu (and cannot be :remaped)
230endif 234endif
231 235
232if bufname('%') == '' 236if bufname('%') == ''
..