diff options
author | Max Christian Pohle | 2016-12-07 10:44:36 +0100 |
---|---|---|
committer | Max Christian Pohle | 2016-12-07 10:44:36 +0100 |
commit | 80890fe291fbe664fac5587994d4bd5048ce8345 (patch) | |
tree | 15e41235dd4eac602ed1ff6acfa9dc4e8a0224fd /vimrc | |
parent | 4eaae3ff84995bce605f4c3553ad511a179d0c4b (diff) | |
download | vim-karlmarks-80890fe291fbe664fac5587994d4bd5048ce8345.tar.bz2 vim-karlmarks-80890fe291fbe664fac5587994d4bd5048ce8345.zip |
changed mouse behaviour, added vim-server desktop file
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -179,7 +179,8 @@ set hlsearch | " highlights all search matches (not as performa | |||
179 | set ignorecase smartcase | " search with ignorecase by default, but use case sensitive search when one captical char is contained | 179 | set ignorecase smartcase | " search with ignorecase by default, but use case sensitive search when one captical char is contained |
180 | set lazyredraw | " disables redraw during macro exectution (improves performance) | 180 | set lazyredraw | " disables redraw during macro exectution (improves performance) |
181 | set linebreak | " wrap long lines at char 'breakat', not inside words | 181 | set linebreak | " wrap long lines at char 'breakat', not inside words |
182 | set mouse=a | " also supported by vim, should be default | 182 | set mouse=n | " allow mouse in normal mode only, so one can use the terminals c&p feature in insert mode |
183 | set mousemodel=popup | " only in gvim: right click opens a popup-menu | ||
183 | set nocursorcolumn | " turn visual cursor column off (improves performance) | 184 | set nocursorcolumn | " turn visual cursor column off (improves performance) |
184 | set nocursorline | " turn visual cursor line off (improves performance) | 185 | set nocursorline | " turn visual cursor line off (improves performance) |
185 | set nofoldenable | " disable code folding. I hate code folding | 186 | set nofoldenable | " disable code folding. I hate code folding |
@@ -191,6 +192,7 @@ set nowrap | " but do not (by default) wrap long lines around | |||
191 | set number | " turn line numbers on/off (performance decreases when they are shown) | 192 | set number | " turn line numbers on/off (performance decreases when they are shown) |
192 | set pumheight=8 | " Determines the maximum number of items to show in the popup menu for | 193 | set pumheight=8 | " Determines the maximum number of items to show in the popup menu for |
193 | set redrawtime=400 | " The time in milliseconds for redrawing the display. | 194 | set redrawtime=400 | " The time in milliseconds for redrawing the display. |
195 | set restorescreen | " restores the console after exiting vim | ||
194 | set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge | 196 | set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge |
195 | set spell spelllang=en,de | " enable spell checker | 197 | set spell spelllang=en,de | " enable spell checker |
196 | set splitbelow | " open new windows below the current one (i find that more intuitive) | 198 | set splitbelow | " open new windows below the current one (i find that more intuitive) |
@@ -208,6 +210,7 @@ set writedelay=0 | |||
208 | if has("multi_byte") | 210 | if 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) | ||
230 | endif | 234 | endif |
231 | 235 | ||
232 | if bufname('%') == '' | 236 | if bufname('%') == '' |